-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hgrc
118 lines (95 loc) · 3.33 KB
/
.hgrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# example user config (see 'hg help config' for more info)
[ui]
username = Dmitry Matveyev <[email protected]>
# We recommend enabling tweakdefaults to get slight improvements to
# the UI over time. Make sure to set HGPLAIN in the environment when
# writing scripts!
tweakdefaults = True
# uncomment to disable command output pagination
# (see 'hg help pager' for details)
# paginate = never
[pager]
pager = less -XRF
[diff]
nobinary = True
showfunc = True
git = True
[revsetalias]
# wip alias is according to
# http://jordi.inversethought.com/blog/customising-mercurial-like-a-pro/
wip = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^) and not closed()
curbm = ancestor(., default)::.
[templates]
wip = '{label("log.branch", ifeq(branch, "default", "", branch))} {label("changeset.{phase}", rev)} {label("grep.user", author|person)}{label("log.tag", if(tags," {tags}"))} {bookmarks % "{ifeq(bookmark, currentbookmark, label('log.activebookmark', bookmark), label('log.bookmark', bookmark))} "}\n{label(ifcontains(rev, revset('parents()'), 'desc.here'),desc|firstline)}'
[alias]
wip = log --graph --rev=wip --template=wip
dft = !GIT_PAGER_IN_USE=1 "$HG" dftastic --change "$1" | less -RX
[extensions]
# uncomment the lines below to enable some popular extensions
# (see 'hg help extensions' for more info)
histedit =
rebase =
# uncommit =
purge =
# For hgweb
highlight =
# https://www.mercurial-scm.org/doc/evolution/index.html
# To install: pip install --user hg-evolve, also available in Arch AUR
evolve =
# https://hg-git.github.io/
# To install: pip install --user hg-git
hgext.bookmarks =
hggit =
# https://github.com/wilfred/difftastic
# Binary is available for installation on Arch
extdiff =
[extdiff]
cmd.dftastic = difft
opts.dftastic = --missing-as-empty --display inline
cmd.delta =
opts.delta = --no-gitconfig --line-numbers --navigate --commit-decoration-style "bold yellow box ul" --file-style "bold yellow box" --file-decoration-style "none"
[extensions]
absorb =
[absorb]
# only check 50 recent non-public changesets at most
max-stack-size = 50
# whether to add noise to new commits to avoid obsolescence cycle
add-noise = 1
[color]
mode=terminfo
# Custom colours
color.orange=202
color.lightyellow=191
color.darkorange=220
color.brightyellow=226
# Colours for each label
log.branch=cyan
log.summary=lightyellow
log.description=lightyellow
log.bookmark=green
log.tag=darkorange
log.activebookmark = green bold underline
changeset.public=orange bold
changeset.secret=blue bold
changeset.draft=brightyellow bold
desc.here=bold blue_background
absorb.description = yellow
absorb.node = blue bold
absorb.path = bold
[committemplate]
changeset = {desc}\n
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: {extramsg}
HG: --
HG: user: {author}\n{ifeq(p2rev, "-1", "",
"HG: branch merge\n")
}HG: branch '{branch}'\n{if(activebookmark,
"HG: bookmark '{activebookmark}'\n") }{subrepos %
"HG: subrepo {subrepo}\n" }{file_adds %
"HG: added {file}\n" }{file_mods %
"HG: changed {file}\n" }{file_dels %
"HG: removed {file}\n" }{if(files, "",
"HG: no files changed\n")}HG: ------------------------ >8 ------------------------
HG: Do not touch the line above.
HG: Everything below will be removed.
{diff()}