Differences between revisions 1 and 2
Revision 1 as of 2011-01-21 15:56:31
Size: 1673
Editor: dendik
Comment: Minimal comparison table based on git vs hg table
Revision 2 as of 2011-01-21 16:14:14
Size: 2178
Editor: dendik
Comment: More commands, inspired by http://hackage.haskell.org/trac/ghc/wiki/GitForDarcsUsers
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||`darcs pull` ||`hg fetch` ||Requires the FetchExtension to be enabled. ||
|| ||`hg pull` || ||
||`darcs init` ||`hg init` || ||
||`darcs get <path>` ||`hg clone <path>`||
||`darcs put <path>` ||`hg clone . <path>`||
||`darcs pull -a` ||`hg fetch` ||Requires the FetchExtension to be enabled. ||
||`darcs pull` ''pulling patches selectively'' ||`hg pull` + either `hg transplant <cset>` or `hg export <cset> | hg import -` || ||`hg pull` || ||
Line 5: Line 8:
||`darcs push -a` ||`hg push`|| ||
||`darcs push` ''selectively''|| || ||
Line 11: Line 16:
||`darcs unrecord` ||`hg rollback` || Rollback only works for one last transaction.||
||`darcs whatsnew -s [<file(s) or dir(s)>]` ||`hg status [<file(s) or dir(s)>]` || ||
||`darcs whatsnew [<file(s) or dir(s)>]` ||`hg diff [<file(s) or dir(s)>]` || ||
Line 12: Line 20:
||`darcs tag <name>` ||`hg tag <name>` || ||
Line 17: Line 26:
||`darcs pull` ''pulling patches selectively'' ||`hg pull` + either `hg transplant <cset>` or `hg export <cset> | hg import -` ||Transplant requires the TransplantExtension. || ||Transplant requires the TransplantExtension. ||

Darcs command

Hg command

Notes

darcs init

hg init

darcs get <path>

hg clone <path>

darcs put <path>

hg clone . <path>

darcs pull -a

hg fetch

Requires the FetchExtension to be enabled.

darcs pull pulling patches selectively

hg pull + either hg transplant <cset> or hg export <cset> | hg import -

hg pull

hg update -c <rev>

darcs push -a

hg push

darcs push selectively

darcs revert <file(s)>

hg revert <file(s)>

darcs show contents -p <patch> <file> > <file>

hg revert -r <rev> <file(s)>

darcs rollback -p <patch>

hg backout <cset>

darcs add <new_file>

hg add <new_file>

darcs record -a [<file(s)>]

hg commit [<file(s)>]

darcs record [<file(s)>]

hg record [<file(s)>]

Requires RecordExtension to be enabled.

darcs unrecord

hg rollback

Rollback only works for one last transaction.

darcs whatsnew -s [<file(s) or dir(s)>]

hg status [<file(s) or dir(s)>]

darcs whatsnew [<file(s) or dir(s)>]

hg diff [<file(s) or dir(s)>]

darcs amend-record

hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip 

Requires the MqExtension.

darcs tag <name>

hg tag <name>

darcs annotate

hg annotate

hg bisect

hg histedit <base cset>

Requires the HisteditExtension.

hg shelve

Requires the ShelveExtension or the AtticExtension.

hg merge

Transplant requires the TransplantExtension.

hg rebase -d <cset>

Requires the RebaseExtension.

darcs send -p <patch>

hg email -r <csets> (or hg bundle -r <rev> and send manually)

Hg email requires the PatchbombExtension.

darcs apply < <mbox>

hg mimport -m <mbox> (or hg unbundle <file>)

Requires the MboxExtension and the MqExtension. Imports patches to mq.

darcs log

hg log

hg outgoing

hg incoming

DarcsConcepts (last edited 2011-01-22 12:26:09 by abuehl)