Mercurial > dotfiles
view .hgrc @ 493:1bb1c44ce49c
systemd: unit file for auto-starting emacs daemon
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 15 Jul 2020 20:30:26 -0400 |
parents | 29680270d3fd |
children | 0fffee666bc7 |
line wrap: on
line source
[extensions] show= share= gpg= hgext.color= hgext.convert= hgext.highlight= hgext.histedit= hgext.patchbomb= hgext.purge= hgext.rebase= hgext.shelve= hgext.show= hgext.remotenames= hgext.absorb= strip= [experimental] obshashrange=no [alias] upstream-bookmarks = log -r 'bookmark() and (upstream() or obsolete())' --template '{bookmarks}\n' utip = log -r 'limit(heads(upstream()), 1)' egrep = !$HG locate -0 '$2' $3 $4 $5 $6 $7 $8 $9 | (cd $(hg root) ; xargs -0 egrep -H '$1') crecord = !$HG commit --interactive --config ui.interface=curses $@ wc-out = log -r 'ancestors(.) and not upstream()' wc-email = email -r 'ancestors(.) and not upstream()' havepatch = log -r 'grep("$1")' unstackall = ! EDITOR="python3 -c 'import sys ; initial = [l for l in open(sys.argv[1]).read().splitlines() if l and not l.startswith("#")] ; baserev = initial[0].split()[1] + "^" ; f = open(sys.argv[1], "w") ; [f.write("base %s\n%s\n" % (baserev, l)) for l in initial]'" $HG histedit $1 anext = !$HG rebase --auto 'children(allprecursors(.))' && $HG co tip [ui] username = Augie Fackler <raf@durin42.com> ignore = ~/.hgglobalignore usehttp2=true mergemarkers = detailed interface = text [pager] # -d means "don't whine about dumb terminals", since that warning from # less can confuse emacs tramp-mode. pager = less -FRX -d [merge-tools] vimdiff.disabled = yes gvimdiff.disabled = yes [defaults] annotate = -nu serve = -v [experimental] graph-group-branches = yes rebaseskipobsolete = yes remotenames = yes updatecheck = yes worddiff = yes xdiff = 1 [diff] git=1 showfunc = 1 [bookmarks] track.current = 1 [histedit] defaultrev = only(.) and canmutate [web] port=7000 allow_archive = bz2 zip [color] status.ignored = magenta bold qseries.unapplied = magenta bold [phases] publish=false # Config tricks from mpm for smartlog [alias] sl = log -Gr smart -Tsl si = incoming -GTsl sl. = log -Gr 'smart and ::.' -Tsl [templatealias] sl_branch = '{ifeq(branch,"default","","{label(black_background, branch)} ")}' sl_node = '{label("log.changeset changeset.{phase}", shortest(node))}{if(ellipsis, "...")}' sl_user = '{label("grep.user", author|user)}' sl_tags = '{label("tags.normal", if(tags," {tags}"))} {label("tags.normal", "{remotenames % sl_remotename}")}' sl_remotename = '{if(startswith("/", remotename), "", " {remotename}")}' sl_book = '{label("sl.book", if(bookmarks," {bookmarks}"))}' sl_topic = '{label("sl.topic", if(topics," {topics}"))}' sl_desc = '{label(ifcontains(rev, revset('.'), 'desc.here'),desc|firstline)}' [templates] sl = '{sl_branch}{sl_node} {sl_user}{sl_tags}{sl_book}{sl_topic}\n{sl_desc}' [color] sl.book = magenta bold sl.topic = yellow bold changeset.draft = magenta changeset.secret = red desc.here = inverse [revsetalias] upstream = ::remotenames() canmutate = not (public() or upstream) - obsolete() smart = ((parents(canmutate) or canmutate or (head() - closed())) and (not obsolete() or orphan()^)) or . %include .private/hgrc %include $HOME/.hgrc-machine