Last active
April 18, 2021 19:13
-
-
Save tomprince/bb1c018e253a03c74c4555b6d1466b8f to your computer and use it in GitHub Desktop.
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
[ui] | |
username = Tom Prince <tom.prince@hocat.ca> | |
interface = curses | |
pagintate = true | |
statuscopies = true | |
rollback = false | |
ignore = ~/.config/hg/ignore | |
[commands] | |
update.check = noconflict | |
[extensions] | |
pager = | |
purge = | |
color = | |
histedit = | |
rebase = | |
shelve = | |
strip = | |
evolve = | |
#topic = | |
show = | |
fsmonitor = | |
share = | |
extdiff = | |
push-to-try = ~/.mozbuild/version-control-tools/hgext/push-to-try | |
firefoxtree = ~/.mozbuild/version-control-tools/hgext/firefoxtree | |
mozphab = ~/.mozbuild/version-control-tools/hgext/mozphab | |
mozext = ~/.mozbuild/version-control-tools/hgext/mozext | |
#formatsource = | |
absorb = | |
split = | |
sparse = | |
pullcreatemarkers = | |
phabricator = | |
hggit = | |
esr_uplifts = | |
backout = ~/src/hg-extra/backout.py | |
not-file = ~/src/hg-extra/not-file.py | |
disable_subrepos = | |
[diff] | |
git = true | |
showfunc = true | |
noprefix = true | |
[pager] | |
attend-help = true | |
attend-incoming = true | |
attend-outgoing = true | |
attend-status = true | |
attend-work = true | |
[alias] | |
old-bookmarks = log -r "bookmark() and ancestors(upstream)" -T "{bookmarks}\n" | |
stack = show stack -T ~/.config/hg/map-cmdline.show | |
work = show work -T ~/.config/hg/map-cmdline.show | |
[revsetalias] | |
#upstream = remote(., default) | |
upstream = max(public()) | |
base = max(public() and ancestors(.)) | |
rb(bug) = desc("Bug " ## bug) & !public() & !obsolete() | |
forward = min(descendants(.) and (head() or branchpoint())) | |
stack = !public() and ancestors(.) | |
revstack(rev) = !public() and ancestors(rev) | |
D(rev) = desc("re:Differential Revision: https://.*/D" ## rev) and !public() | |
[templatealias] | |
link(url, text) = '\x1b]8;;{url}\x07{text}\x1b]8;;\x07' | |
luser = '{label("log.user", "{author}")}' | |
[templates] | |
node = "{node}\n" | |
oneline = "{node|short} | {date|isodatesec} | {if(firstpushdate, '{firstpushdate|isodatesec}',pad('',25))} | {author|email}: {desc|strip|firstline}\n" | |
[color] | |
review.status = blue | |
log.topic = green | |
log.branch = red | |
[experimental] | |
graphshorten = true | |
worddiff = true | |
evolution = all | |
[paths] | |
#journal = | |
[mozilla] | |
ircnick = tomprince | |
[defaults] | |
# update = --check | |
[phabsend] | |
confirm = true | |
[phabricator] | |
url=https://phabricator.services.mozilla.com | |
%include .hgrc-secret | |
[rebase] | |
experimental.inmemory = true | |
[phases] | |
publish = false | |
[git] | |
public = main | |
[hggit] | |
usephases = true | |
[absorb] | |
# only check 50 recent non-public changesets at most | |
max-stack-size = 200 | |
[extdiff] | |
3way = ~/src/hg-extra/kdiff.py $root $parent1 $child | |
cmd.kdiff3 = | |
[mozext] | |
ircnick = tomprince |
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
# TODO there are a few deficiencies in this file: | |
# * The "namespace" of the labels needs to be worked out. We currently | |
# piggyback on existing values so color works. | |
%include map-cmdline.default | |
[templatealias] | |
link(url, text) = '\x1b]8;;{url}\x07{text}\x1b]8;;\x07' | |
linkbug(text) = "{sub(r'([Bb]ug ([0-9]+))', link(r'https://bugzilla.mozilla.org/show_bug.cgi?id=\2', r'\1'), text)}" | |
[templates] | |
showwork = '{cset_shortnode}{review_status}{namespaces % cset_namespace} {cset_shortdesc}' | |
showstack = '{showwork}' | |
changeset = '{showwork}\n' | |
cset_shortnode = '{labelcset(shortest(node, 5))}' | |
# Treat branch and tags specially so we don't display "default" or "tip" | |
cset_namespace = '{ifeq(namespace, "branches", names_branches, ifeq(namespace, "tags", names_tags, names_others))}' | |
names_branches = '{ifeq(branch, "default", "", " ({label('log.{colorname}', branch)})")}' | |
names_tags = '{if(filter_tags(names), | |
" ({label('log.{colorname}', join(filter_tags(names), ' '))})")}' | |
names_others = '{if(names, " ({label('log.{colorname}', join(names, ' '))})")}' | |
review_status = '{ifeq(phase, "public", "", "{phabricator}")}' | |
phabricator = '{if(phabreview, " {label('review.status', link(phabreview.url, phabreview.id))}")}' | |
cset_shortdesc = '{label("log.description", desc|firstline|linkbug)}' | |
[templatealias] | |
filter_tags(names) = filter(names, ifeq(name, 'tip', '', name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment