Created
January 3, 2019 23:11
-
-
Save jswalden/7d6a9c17fb0f9c48080c4496d291eb8d to your computer and use it in GitHub Desktop.
.hgrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a Mercurial configuration file. | |
[ui] | |
username = Jeff Walden <jwalden@mit.edu> | |
merge = meld | |
interface = curses | |
tweakdefaults = true | |
# Use git diffs for binary diffing, emulate -p, less context for fewer conflicts | |
[diff] | |
git = 1 | |
showfunc = true | |
unified = 3 | |
# Enable extended diffs for mq, per | |
# http://www.selenic.com/mercurial/wiki/index.cgi/EditingHistory | |
[defaults] | |
qimport = --git | |
qrefresh = --git | |
qdiff = -U 8 -p | |
diff = -U 8 -p | |
qnew = -U | |
qseries = -s | |
# Enable the mq extension for help managing patches, transplant for moving | |
# patches around, rev^ to refer to the parent of rev, progress bars for | |
# pulls/updates. | |
[extensions] | |
hgext.mq = | |
hgext.rebase = | |
transplant = | |
hgext.graphlog = | |
hgext.convert = | |
parentrevspec = | |
progress = | |
purge = | |
relink = | |
record = | |
# https://gregoryszorc.com/blog/2017/12/11/high-level-problems-with-git-and-how-to-fix-them/ | |
show = | |
#hgext.crecord = /home/jwalden/.programs/crecord/edgimar-crecord-b9bfbcdbc070/crecord | |
bzexport = ~/.mozbuild/version-control-tools/hgext/bzexport | |
rebase = | |
mq = | |
mqext = ~/.mozbuild/version-control-tools/hgext/mqext | |
qimportbz = ~/.mozbuild/version-control-tools/hgext/qimportbz | |
histedit = | |
bundleclone = ~/.mozbuild/version-control-tools/hgext/bundleclone | |
push-to-try = ~/.mozbuild/version-control-tools/hgext/push-to-try | |
blackbox = | |
evolve = /home/jwalden/.mozbuild/evolve/hgext3rd/evolve | |
format-source = /home/jwalden/.mozbuild/version-control-tools/hgext/format-source | |
# blackbox = | |
# firefoxtree = /home/jwalden/.mozbuild/version-control-tools/hgext/firefoxtree | |
[hooks] | |
# Never commit an ostensibly-unreviewed patch again | |
#preoutgoing.ensure_not_unreviewed = /home/jwalden/Programs/ensure-not-unreviewed | |
# Disallow pull when mq patches are applied | |
# prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1 | |
# Ixnay trailing whitespace. | |
#pretxncommit.whitespace = hg export tip | (! egrep -q '^\+.*[ \t]$') | |
# Un-publish mq patches pushed to try | |
# post-try = hg phase --force --draft "mq()" | |
# Make |hg push -f try| work | |
[paths] | |
try = ssh://hg.mozilla.org/try/ | |
m-c = ssh://hg.mozilla.org/mozilla-central/ | |
inbound = ssh://hg.mozilla.org/integration/mozilla-inbound/ | |
inttypes-mq = ssh://hg.mozilla.org/users/jwalden_mit.edu/inttypes-mq/ | |
# invoke a pager for certain commands | |
[pager] | |
pager = LESS='FSRX' less | |
[alias] | |
# qstatus: files modified by the current mq patch | |
qstatus = status --rev qtip^:qtip | |
# try: push to try | |
try = push -f try | |
wip = log --graph --rev=wip --template=wip | |
geckoversion = !$HG cat -r $1 'path:config/milestone.txt' | tail -1 | |
smart-annotate = annotate -w --skip ignored_changesets | |
[bzexport] | |
unified = 8 | |
# URLs of the Bugzilla server and BzAPI servers | |
bugzilla = https://bugzilla.mozilla.org | |
[mqext] | |
mqcommit = auto | |
allowexchangewithapplied = true | |
[revsetalias] | |
wip = (parents(not public()) or not public() or . or (head() and branch(default))) and (not obsolete() or unstable()^) and not closed() | |
ignored_changesets = desc("ignore-this-changeset") or extdata(get_ignored_changesets) | |
[templates] | |
wip = '{label("wip.branch", if(branches,"{branches} "))}{label(ifeq(graphnode,"x","wip.obsolete","wip.{phase}"),"{rev}:{node|short}")}{label("wip.user", " {author|user}")}{label("wip.tags", if(tags," {tags}"))}{label("wip.tags", if(fxheads," {fxheads}"))}{if(bookmarks," ")}{label("wip.bookmarks", if(bookmarks,bookmarks))}{label(ifcontains(rev, revset("parents()"), "wip.here"), " {desc|firstline}")}' | |
[color] | |
wip.bookmarks = yellow underline | |
wip.branch = yellow | |
wip.draft = green | |
wip.here = red | |
wip.obsolete = none | |
wip.public = blue | |
wip.tags = yellow | |
wip.user = magenta | |
[experimental] | |
graphshorten = true | |
[extdata] | |
get_ignored_changesets = shell:cat `hg root`/.hg-annotate-ignore-revs 2> /dev/null || true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment