-
Notifications
You must be signed in to change notification settings - Fork 2
/
dothgrc
56 lines (48 loc) · 1.53 KB
/
dothgrc
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
[ui]
merge = internal:merge
verbose = True
username = Todo <todo@example.com>
[extensions]
color =
extdiff =
graphlog =
mq =
pager =
parentrevspec =
progress =
purge =
rebase =
record =
transplant =
mercurial_keyring =
[pager]
pager = LESS='FSRX' less
attend = annotate, cat, diff, export, glog, log, qdiff, bdiff, out
[annotate]
ignorews = 1
[web]
cacerts = /etc/ssl/certs/ca-certificates.crt
[revsetalias]
; Gets the parent branch of your branch. This is also the common ancestor.
bparent = parents(min(branch(.)))
; Gets the head of the parent branch of your branch.
bdest = max(branch(bparent))
[alias]
; Show changed files between your branch and the last parent branch at the point you branched.
bst = status --rev bparent
; Gets the diff between your branch and the last parent branch at the point you branched.
bdiff = diff -r bparent
; Gets you the name of your parent in case you forget.
bparent = id -b -r bparent
; Usage: hg bopen <new-branch-name>
bopen = !$HG branch $1 && $HG commit -m "<<Replace me with a good title. branch: $1, parent: `hg id -b -r .`>>"
; Usage: hg bfinish <parent-branch-name>
bfinish = rebase --collapse --dest $1
; Usage: hg brebase <parent-branch-name>
brebase = rebase --keepbranches --dest $1
; Trashes a branch, maybe it got completely rejected or you have a completely different approach.
btrash = strip -r "branch($1)"
; Pushes only the branch you are currently on.
bpush = push -b .
; Puts all commits in the current branch in the "draft" phase (so you can rebase them)
bmakedraft = phase -d --force -r "branch($1)"