-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhgrc
More file actions
58 lines (51 loc) · 1.16 KB
/
hgrc
File metadata and controls
58 lines (51 loc) · 1.16 KB
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
[ui]
username = Max Wang <mxawng@gmail.com>
interface = text
style = ~/.hgrc.d/git-style.hg
[alias]
apc = record # add -p; commit
bm = bookmark
bma = bookmark --all
base = log -T '{node}\n' -r 'ancestor(.,master)'
ci = commit
caa = commit --amend
co = update
cp = graft
d = diff
dw = diff --ignore-space-change --pager=yes
info = !$HG summary && $HG status
l = log
s = status
show = show -g
up = !$HG pull && $HG rebase -d master
whatchanged = !$HG log --style ~/.hgrc.d/whatchanged.hg
w = whatchanged
# git | hg
#---------------------+----------------------
# checkout <h> | update <h>
# checkout . | revert -a
# | update --clean -r .
# checkout <h> -- <f> | revert -r <h> <f>
# reset HEAD^ | reset .^
# revert | backout
# add -p; commit | record
[diff]
git = True
[color]
diff.diffline = blue
diff.extended = blue
diff.file_a = blue
diff.file_b = blue
diff.hunk = cyan
diff.deleted = red
diff.inserted = green
[color]
status.modified = yellow
status.added = green
status.removed = yellow
status.deleted = red
status.unknown = red
[merge-tools]
editmerge.premerge=keep-merge3
[pager]
attend-shelve = true