-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhgrc
52 lines (44 loc) · 1.25 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
[ui]
editor = vim -c ":set textwidth=0"
username = Wei Zhang <[email protected]>
ignore = ~/dotfiles/hgignore_global
[merge-tools]
p4.priority = 100
p4.premerge = True
p4.executable = /Applications/p4merge.app/Contents/MacOS/p4merge
p4.gui = True
p4.args = $base $local $other $output
[pager]
pager = LESS='FRKX' less
[extensions]
#enable hg glog command
#hgext.graphlog =
# enable color diff, need mercurial >=1.1
color=
purge=
[color]
# vim colors (bg=dark theme)
diff.diffline = green bold
diff.file_a = green bold
diff.file_b = green bold
diff.hunk = yellow bold
diff.deleted = red bold
diff.inserted = cyan bold
# for status
status.modified = magenta bold
status.added = green bold
status.removed = red bold
status.deleted = cyan bold
status.unknown = blue bold
status.ignored = black bold
[alias]
bm = bookmark
df = diff
show = log --color=always -pr
slog = log --template '\033[0;33m{rev} \033[0;31m{branches} \033[0;39m{desc|firstline|strip} \033[0;34m({date|age} by {author|person}) \033[1;39m{tags}\033[0m\n\n'
sglog = glog --template '\t\033[0;33m{rev} \033[0;31m{branches} \033[0m{desc|firstline|strip} \033[0;34m({date|age} by {author|person}) \033[1;39m{tags}\033[0m\n\n'
st = status
gl = glog -l 10
sgl = sglog -l 20
[isl]
hasShownGettingStarted = true