[darcs-users] branching

Keith Irwin keith.irwin at gmail.com
Mon Oct 4 21:22:24 UTC 2004


Folks--

Just curious: but is there a discussion about how you'd go about
"branching" with darcs? I'm kind of looking for a best-practice sort
of thing, with maybe a run-through example such as you might find in
the O'Reilly book about subversion.

Haven't really found anything on the wiki, nor in my cursory search of
the email archives.

My assumption is that a "branch" is simple a copy (get) from a
self-designated central repo, but then I quickly get messed up
thinking about how you keep track of these branches outside of knowing
where all these check outs reside.  If I have a branch on a laptop and
the laptop crashes, I'm sunk, eh?

Do you do a sort of subversion recommended thing in your "main" repo:

     myrepo/myproject/trunk
     myrepo/myproject/branches
     myrepo/myproject/tags

and then just copy stuff from one to the other as needed?  You could
then "get" from a branch and push stuff into it as needed if you want
that central repo to record changes you've commited to your local
laptop (say) working repo.

No, yes, way off, doesn't matter?

Keith




More information about the darcs-users mailing list