Hello Lasse,

On Sunday 16 May 2010 Lasse Kliemann wrote:
> This sounds like a really simple issue, but I did not find out
> how to do it. I want to rename a working copy and then continue
> using it with the old URL. There are many ways to change the URL
> of a working copy, but not the other way round.
you are right; as the addressing of the working copy and the properties is 
done via MD5 of the pathname, a working copy move is not really supported at 
the time.
 
> Of course, I can do a fresh checkout in the new location. But
> this working copy is so large that I rather would like to simply
> do a mv or a local rsync to rename it.
Well, the easiest way is to go to the current working copy, do

        old/ # fsvs urls dump > /tmp/fsvs-urls

and then move or rename the working copy, followed by going into the new path 
and starting

        new/ #  fsvs urls load < /tmp/fsvs-urls

to initialize the new path configuration.

        # ls -la /etc/fsvs/

shows the new and old config directories - simply move the files from the old 
directory into the new one (would be Urls and Ign, I think); then do a

        new/ # fsvs sync-repos

to fetch current file list and properties for the new paths.
(You could write a script to move these files into the new place, too - the 
address is simply MD5(path) without any trailing \0 or \n; there's an example 
script in 
http://fsvs.tigris.org/source/browse/fsvs/branches/fsvs-1.2.x/fsvs/tests/path2spool?view=log)


That way you can at least keep the local data, and save network bandwidth.

Sorry for the bother; I hope that helps.



Regards,

Phil


-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

------------------------------------------------------
http://fsvs.tigris.org/ds/viewMessage.do?dsForumId=3928&dsMessageId=2609596

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to