On 2007-02-26, Jonathon McKitrick <[EMAIL PROTECTED]> wrote:
> On Sun, February 25, 2007 7:32 pm, John Goerzen said:
>> Mercurial appears to suffer from none of the Darcs hanging problems,
>> while at the same time enabling all of the core functionality I want
>> from Darcs: distributed operation, cheap branching, full granular
>> history across merges, and even cherrypicking.
>
> I took a quick look at the hg docs after reading your email.  One thing I
> noticed, and I could be wrong, but it seems like hg needs a lot more
> command line options, and even specific revision info to do certain things

It generally seems to be about as easy and automatic as darcs in every
way except darcs send.  update and merge generally do the right thing by
default.

hg fetch is the equivolent to darcs pull -a.

hg push is the same as darcs push -a, but you can give a -r to specify
what rev you want to push.

> like update and merge.  One think I've become accustomed to with darcs is
> recording patches with 'dev:' 'fix:' 'doc:' and prefixes like these, then
> going into another repo and doing 'darcs pull -p doc' and selecting the
> doc patches I want.

Yeah, nobody else seems to have quite the same cherrypicking features
that darcs does.  I'm not sure about selecting revs based on commit logs
-- it may be able to do that.

You'll probably want to look at the transplant extension.  As I've said,
it's approximately as good as darcs cherrypicking, as it has some
tradeoffs too -- just different ones.  With darcs cherrypicking,
sometimes the patch deps get in the way and you could wind up selecting
way more patches than you wanted.

But the general Mercurial workflow is a little different than darcs, and
it would probably be better for you to ask about that on a Mercurial
list since I've just been studying on it for a few hours now.

> That reminds me... darcs lets me y-or-n which changes to record as a
> patch.  I assume the same effect in hg is achieved with separate repos for
> each patch being worked on?

There is a program called hgct -- the Mercurial commit tool -- that lets
you easily choose which files to commit.  (This can also be done
non-interactively on the command line.)  As far as I know, there is no
tool to let you choose which hunks of a file to commit; that seems to be
unique to darcs.

I will miss it, but not all that much.

-- John


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

Reply via email to