-
Notifications
You must be signed in to change notification settings - Fork 0
/
hgrc
75 lines (63 loc) · 1.46 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
[ui]
username = Bill Wiens <[email protected]>
merge = vimdiff
editor = vim
ignore = ~/.hgignore
style = ~/.files/hg/templates/map-cmdline.nlog
[defaults]
revert = --no-backup
[extensions]
color =
fetch =
pager =
progress =
purge =
rebase =
record =
shelve =
strip =
transplant =
fsmonitor =
[fsmonitor]
mode = off
[pager]
pager = LESS='FRX' less
attend = diff,status,log,qdiff,blame,annotate,pdiff,glog,show,slog,nlog,sglog
[progress]
delay = 1.0
[diff]
git = True
unified = 5
[color]
status.modified = cyan
status.added = green
status.removed = red
status.deleted = yellow bold underline
status.unknown = magenta bold underline
status.ignored = black bold
diff.diffline = none
diff.extended = cyan
diff.file_a = red
diff.file_b = green
diff.hunk = yellow bold
diff.deleted = red
diff.inserted = green
diff.changed = white
diff.trailingwhitespace = white_background
[merge-tools]
vimdiff.executable = vim
vimdiff.args = -d $base $local $output $other +close +close
[alias]
# Nudge: just push the current branch.
nudge = push --branch .
# abandon a failed merge
abandon = update -C -r .
# log aliases
show = log --patch --verbose --rev
slog = log --style=$HOME/.files/hg/templates/map-cmdline.slog
nlog = log --style=$HOME/.files/hg/templates/map-cmdline.nlog
sglog = log -G --style=$HOME/.files/hg/templates/map-cmdline.sglog
who = annotate -c -d -u -q
huh = !$HG log -v -r `$HG annotate -c $1 | head -n $2 | tail -n 1 | cut -f 1 -d ':'`
# Local settings
%include ~/.hgrc_local