##// END OF EJS Templates
closehead: fix close-head -r listification...
Joerg Sonnenberger -
r40132:12a72729 default
parent child Browse files
Show More
@@ -28,7 +28,7 b" testedwith = 'ships-with-hg-core'"
28
28
29 commitopts = cmdutil.commitopts
29 commitopts = cmdutil.commitopts
30 commitopts2 = cmdutil.commitopts2
30 commitopts2 = cmdutil.commitopts2
31 commitopts3 = [('r', 'rev', '',
31 commitopts3 = [('r', 'rev', [],
32 _('revision to check'), _('REV'))]
32 _('revision to check'), _('REV'))]
33
33
34 @command('close-head|close-heads', commitopts + commitopts2 + commitopts3,
34 @command('close-head|close-heads', commitopts + commitopts2 + commitopts3,
@@ -1,8 +1,22 b''
1 $ hg init test-content
1 $ hg init test-content
2 $ cd test-content
2 $ cd test-content
3 $ hg debugbuilddag '+2*2*3*4'
3 $ hg debugbuilddag '+2*2*3*4+7'
4 $ hg bookmark -r 1 @
4 $ hg bookmark -r 1 @
5 $ hg log -G --template '{rev}:{node|short}'
5 $ hg log -G --template '{rev}:{node|short}'
6 o 11:1d876b1f862c
7 |
8 o 10:ea5f71948eb8
9 |
10 o 9:f1b0356d867a
11 |
12 o 8:e8d1253fb0d7
13 |
14 o 7:d423bbba4459
15 |
16 o 6:a2f58e9c1e56
17 |
18 o 5:3a367db1fabc
19 |
6 o 4:e7bd5218ca15
20 o 4:e7bd5218ca15
7 |
21 |
8 | o 3:6100d3090acf
22 | o 3:6100d3090acf
@@ -23,11 +37,10 b''
23 $ hg bookmark
37 $ hg bookmark
24 @ 1:66f7d451a68b
38 @ 1:66f7d451a68b
25 $ hg heads
39 $ hg heads
26 changeset: 4:e7bd5218ca15
40 changeset: 11:1d876b1f862c
27 parent: 0:1ea73414a91b
28 user: debugbuilddag
41 user: debugbuilddag
29 date: Thu Jan 01 00:00:04 1970 +0000
42 date: Thu Jan 01 00:00:11 1970 +0000
30 summary: r4
43 summary: r11
31
44
32 changeset: 3:6100d3090acf
45 changeset: 3:6100d3090acf
33 parent: 0:1ea73414a91b
46 parent: 0:1ea73414a91b
@@ -35,7 +48,7 b''
35 date: Thu Jan 01 00:00:03 1970 +0000
48 date: Thu Jan 01 00:00:03 1970 +0000
36 summary: r3
49 summary: r3
37
50
38 $ hg --config extensions.closehead= close-head -m 'Close more old heads' 4
51 $ hg --config extensions.closehead= close-head -m 'Close more old heads' -r 11
39 $ hg heads
52 $ hg heads
40 changeset: 3:6100d3090acf
53 changeset: 3:6100d3090acf
41 parent: 0:1ea73414a91b
54 parent: 0:1ea73414a91b
General Comments 0
You need to be logged in to leave comments. Login now