[#2614] one can not change the repository in Setting/Repository, just delete
In all my projects (and others as well) on http://dev.keltia.net, I can not modify the SCM type/path in Settings/Repository, both the button and text fields are greyed out. Is this expected?
#4 Updated by Brian Ravnsgaard Riis over 12 years ago
Sorry for barging in here, but I found the thread while trying to do just that, so.. :-)
Anyway, I have several projects on my local computer, all with local svn repositories. Lo and behold, my wireless lan card busts and HP wants the computer for repairs (No charge btw.. really very nice of them!) This means that I have had to migrate my entire dev-environment to a different machine.
For various reasons I cannot simply reformat this machine; I need it as-is. Unfortunately all my SCM entries are using a file:/// url, not a http:// one, and now all my repositories are in D:\repos instead of C:\Users\Public\repos. Of necessity, btw. There is scant space on drive C.
Of course, I could just delete the SCM entry and restart; however, several of those repositories are mirrors of large projects, and I would hate having to wait for the fetch_changesets method to complete again... It took a day and some last time, and I migrated to an older - and slower - computer.
So, what I was hoping to get from this feature, to answer your question, is to change the path to the repository, without losing the changesets already fetched. Yes, it can be worked around. No, I really don't want to!
I'll go hacking through the db file now instead. :-) Where should I look? :-D
#5 Updated by Brian Ravnsgaard Riis over 12 years ago
Found it. In table "repositories". Well, that makes good sense at least! :-D
FWIW I fixed my own issue by simply modifying the table entries, but this is - to say the least - quite hackish. I really think it should be possible to do this from redmine proper. Quite possibly well hidden and probably only by user "admin", but still...
Ollivier, if you still have a problem with this, and are comfortable with regular db management, you can update it yourself. In table repositories, columns "url" and "root_url". You might want to shut down your redmine instance first, though... ;-)