Show More
@@ -28,7 +28,7 b" testedwith = 'ships-with-hg-core'" | |||
|
28 | 28 | |
|
29 | 29 | commitopts = cmdutil.commitopts |
|
30 | 30 | commitopts2 = cmdutil.commitopts2 |
|
31 |
commitopts3 = [('r', 'rev', |
|
|
31 | commitopts3 = [('r', 'rev', [], | |
|
32 | 32 | _('revision to check'), _('REV'))] |
|
33 | 33 | |
|
34 | 34 | @command('close-head|close-heads', commitopts + commitopts2 + commitopts3, |
@@ -1,8 +1,22 b'' | |||
|
1 | 1 | $ hg init test-content |
|
2 | 2 | $ cd test-content |
|
3 | $ hg debugbuilddag '+2*2*3*4' | |
|
3 | $ hg debugbuilddag '+2*2*3*4+7' | |
|
4 | 4 | $ hg bookmark -r 1 @ |
|
5 | 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 | 20 | o 4:e7bd5218ca15 |
|
7 | 21 | | |
|
8 | 22 | | o 3:6100d3090acf |
@@ -23,11 +37,10 b'' | |||
|
23 | 37 | $ hg bookmark |
|
24 | 38 | @ 1:66f7d451a68b |
|
25 | 39 | $ hg heads |
|
26 |
changeset: |
|
|
27 | parent: 0:1ea73414a91b | |
|
40 | changeset: 11:1d876b1f862c | |
|
28 | 41 | user: debugbuilddag |
|
29 |
date: Thu Jan 01 00:00: |
|
|
30 |
summary: r |
|
|
42 | date: Thu Jan 01 00:00:11 1970 +0000 | |
|
43 | summary: r11 | |
|
31 | 44 | |
|
32 | 45 | changeset: 3:6100d3090acf |
|
33 | 46 | parent: 0:1ea73414a91b |
@@ -35,7 +48,7 b'' | |||
|
35 | 48 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
36 | 49 | summary: r3 |
|
37 | 50 | |
|
38 |
$ hg --config extensions.closehead= close-head -m 'Close more old heads' |
|
|
51 | $ hg --config extensions.closehead= close-head -m 'Close more old heads' -r 11 | |
|
39 | 52 | $ hg heads |
|
40 | 53 | changeset: 3:6100d3090acf |
|
41 | 54 | parent: 0:1ea73414a91b |
General Comments 0
You need to be logged in to leave comments.
Login now