##// END OF EJS Templates
debugbuilddag: fix starting a dag on a non-default branch
Wagner Bruna -
r16219:28c56487 stable
parent child Browse files
Show More
@@ -1381,7 +1381,8 b' def debugbuilddag(ui, repo, text=None,'
1381 at = -1
1381 at = -1
1382 atbranch = 'default'
1382 atbranch = 'default'
1383 nodeids = []
1383 nodeids = []
1384 ui.progress(_('building'), 0, unit=_('revisions'), total=total)
1384 id = 0
1385 ui.progress(_('building'), id, unit=_('revisions'), total=total)
1385 for type, data in dagparser.parsedag(text):
1386 for type, data in dagparser.parsedag(text):
1386 if type == 'n':
1387 if type == 'n':
1387 ui.note('node %s\n' % str(data))
1388 ui.note('node %s\n' % str(data))
@@ -86,18 +86,19 b' glog'
86 o 0: r0 [] @ 0.00
86 o 0: r0 [] @ 0.00
87
87
88
88
89 overwritten files
89 overwritten files, starting on a non-default branch
90
90
91 $ rm -r .hg
91 $ rm -r .hg
92 $ hg init
92 $ hg init
93 $ hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' -q -o
93 $ hg debugbuilddag '@start.@default.:f +3:p2 @temp <f+4 @default /p2 +2' -q -o
94 tags
94 tags
95 $ cat .hg/localtags
95 $ cat .hg/localtags
96 2a8ed67d317e370eac733dccc501b12d7b9c441a f
96 f778700ebd50fcf282b23a4446bd155da6453eb6 f
97 4226a30965b7af58f94d0cda7e6c2c9c63e6bf90 p2
97 bbccf169769006e2490efd2a02f11c3d38d462bd p2
98 dag
98 dag
99 $ hg debugdag -t -b
99 $ hg debugdag -t -b
100 +2:f
100 @start+1
101 @default+1:f
101 +3:p2
102 +3:p2
102 @temp*f+3
103 @temp*f+3
103 @default*/p2+2:tip
104 @default*/p2+2:tip
@@ -128,7 +129,7 b' glog'
128 |/
129 |/
129 o 1: r1 [] @ 1.00
130 o 1: r1 [] @ 1.00
130 |
131 |
131 o 0: r0 [] @ 0.00
132 o 0: r0 [start] @ 0.00
132
133
133 glog of
134 glog of
134 $ hg glog --template '{rev}: {desc} [{branches}]\n' of
135 $ hg glog --template '{rev}: {desc} [{branches}]\n' of
@@ -154,13 +155,13 b' glog of'
154 |/
155 |/
155 o 1: r1 []
156 o 1: r1 []
156 |
157 |
157 o 0: r0 []
158 o 0: r0 [start]
158
159
159 tags
160 tags
160 $ hg tags -v
161 $ hg tags -v
161 tip 11:58a51e5eb988
162 tip 11:9ffe238a67a2
162 p2 4:4226a30965b7 local
163 p2 4:bbccf1697690 local
163 f 1:2a8ed67d317e local
164 f 1:f778700ebd50 local
164 cat of
165 cat of
165 $ hg cat of --rev tip
166 $ hg cat of --rev tip
166 r11
167 r11
General Comments 0
You need to be logged in to leave comments. Login now