Hi Lev,

Sorry for the late response.

On Thu, Aug 19, 2010 at 17:25:09 -0700, Lev Lvovsky wrote:
> We're currently using a darcs v.1 based repository.  We clearly want
> to move to v.2.  Our developers all have many branches off of our
> "main" repository where we (as expected), make our own local changes
> and try out different bits of code.

Excuse me if we've mentioned this before, but as a sort of precautionary
knee-jerk reaction, may I point you to this FAQ entry to make sure you
really want to upgrade to the darcs 2 patch semantics (and wouldn't
perhaps just be happier with the much easier hashed repository
conversion?)

http://wiki.darcs.net/FAQ#should-i-convert-my-repository-to-the-darcs-2-format

> I'd like to know whether the following is a safe and suggested form of 
> converting:
> 
> main repository (version 1): /home/user/main
> branch repository (version 1): /home/user/main-branch
> 
> commands:
> --
> darcs convert /home/user/main /home/user/main_2
> darcs convert /home/user/main-branch /home/user/main-branch_2
 
> cd /home/user/main-branch_2
> darcs send -o branch.darcs /home/user/main_2
> 
> cd /home/user/main_2
> darcs apply /home/user/main-branch_2/branch.darcs

One scenario where this may be safe is if you can make sure that the
history of the main repo is a prefix of the main-branch repo.  You can
do this with

  darcs get main tmp
  darcs pull --repo tmp main-branch

Then converting main and tmp separately should work

> In testing this with a push, darcs failed with an error messsage which
> I took to prove just that.

Could I see that error message, out of interest?

Meanwhile, hopefully I've not said something silly!  Somebody from the
list will likely pipe up if I've made a mistake in my thinking

Cheers,

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:[email protected] (Jabber or Google Talk only)

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to