Skip to content

Instantly share code, notes, and snippets.

@elifarley
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elifarley/4fc46c55f2e1c847d5a1 to your computer and use it in GitHub Desktop.
Save elifarley/4fc46c55f2e1c847d5a1 to your computer and use it in GitHub Desktop.
Some useful aliases for Mercurial DVCS
# Save this file as %USERPROFILE%\mercurial.ini or ~/.hgrc
[alias]
nudge = push --rev .
clean = clean --abort-on-err
cleana = clean --all
qic = !%HG% qimport -r .:: && %HG% qpop -a $@
qfa = !%HG% qpush -a $@ && %HG% qfinish -a
metaimport = !%HG% export $@ | %HG% import --user "%HGUSER%" --bypass -
metaimportnc = !%HG% export $@ | %HG% import --user "%HGUSER%" --no-commit --similarity 50 -
upc = !%HG% cleana && %HG% up -C -r . $@
upcr = !%HG% cleana && %HG% up -C $@
ul = !%HG% --config ui.merge=internal:local up $@
uo = !%HG% --config ui.merge=internal:other up $@
ml = merge --tool internal:local
mo = merge --tool internal:other
mi = !%HG% metaimport $@
minc = !%HG% metaimportnc $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment