Repository navigation
Expand file tree
/
Copy path.hgrc
More file actions
87 lines (75 loc) · 2.34 KB
/
Copy path.hgrc
File metadata and controls
87 lines (75 loc) · 2.34 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
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
[ui]
username = Thomas Achtemichuk <tom@tomchuk.com>
merge = internal:merge
#merge = Kaleidoscope
# merge = vimdiff
editor = vim
paginate = never
interface = curses
[merge-tools]
Kaleidoscope.executable = /usr/local/bin/ksdiff
Kaleidoscope.args = --merge --output $output --base $base -- $local $other
vimdiff.executable = vim
vimdiff.args = -f -d -c "wincmd J" "$output" "$local" "$base" "$other"
[extdiff]
cmd.ksdiff = /usr/local/bin/ksdiff
opts.ksdiff = --changeset --filelist
[phases]
publish = False
[extensions]
strip =
mq =
extdiff =
histedit =
rebase =
evolve =
topic =
record =
fsmonitor =
color =
progress =
journal =
shelve =
purge =
#prompt = ~/.hg_prompt.py
[color]
status.modified = blue bold
status.added = green bold
status.removed = red bold
status.deleted = red bold
status.unknown = magenta bold
status.ignored = white
[commands]
status.relative = true
[fsmonitor]
mode = on
[hooks]
#pretxncommit.shrinkwrap = test -z "$(hg status -m "$(hg root)/npm-shrinkwrap.json")"
# pretxncommit.lint = FILES=$(hg status -n -I '**/*.py'); if [ ! -z "$FILES" ]; then flake8 $FILES; fi;
[diff]
git = 1
unified = 8
showfunc = 1
[defaults]
commit = -v
qnew = -U
[experimental]
evolution.obsdiscovery = no
#obshashrange = yes
#obshashrange.lru-size = 100000
#obshashrange.max-revs = 100000
#obshashrange.warm-cache = auto
[alias]
s = !$HG sum; $HG status; $HG resolve -l; $HG stack --color=always | head -n12
ss = !$HG stack --color=always -v | head -n79
l = log -M --removed --user "Thomas Achtemichuk" --template "{date|shortdate} {if(bookmark, '{bookmarks}', '{branches}')} {desc|firstline}\n"
lt = !$HG log -r "troubled()"; $HG log -r "branch(int) and head()" -T 'head: {node|short} - {desc}\n'
d = diff
cut = !$HG up default && $HG topics BKSTG-$@
blame = annotate -d -u -q -c -l
kd = !$HG ksdiff $@
ks = !$HG ksdiff -c $@
lg = log -M --removed --template "{label('custom.rev',node|short)} - {if(bookmarks,'(')}{label('custom.bm',bookmarks)}{if(bookmarks,') ')}{desc|firstline} ({label('custom.date',date|age)}) <{label('custom.author',author|person)}>\n"
mi = !TOPIC=$($HG log -r . -T "{topic}") && [ ! -z "$TOPIC" ] && echo "Merging $TOPIC into int" && $HG pull && $HG up int && $HG merge $TOPIC && hg commit -m "Merge $TOPIC" && hg push -b int && hg up $TOPIC
r = !flake8 $1 && hg resolve -m $1
pr = !$HG ksdiff -r "topic('$1') and not branch('default') and not merge()"