Show More
@@ -291,14 +291,18 b' class monotone_source(converter_source, ' | |||
|
291 | 291 | return data, attr |
|
292 | 292 | |
|
293 | 293 | def getcommit(self, rev): |
|
294 | certs = self.mtngetcerts(rev) | |
|
294 | extra = {} | |
|
295 | certs = self.mtngetcerts(rev) | |
|
296 | if certs.get('suspend') == certs["branch"]: | |
|
297 | extra['close'] = '1' | |
|
295 | 298 | return commit( |
|
296 | 299 | author=certs["author"], |
|
297 | 300 | date=util.datestr(util.strdate(certs["date"], "%Y-%m-%dT%H:%M:%S")), |
|
298 | 301 | desc=certs["changelog"], |
|
299 | 302 | rev=rev, |
|
300 | 303 | parents=self.mtnrun("parents", rev).splitlines(), |
|
301 |
branch=certs["branch"] |
|
|
304 | branch=certs["branch"], | |
|
305 | extra=extra) | |
|
302 | 306 | |
|
303 | 307 | def gettags(self): |
|
304 | 308 | tags = {} |
@@ -207,6 +207,10 b' test diverging directory moves' | |||
|
207 | 207 | $ mtn ci -m divergentdirmove2 |
|
208 | 208 | mtn: beginning commit on branch 'com.selenic.test' |
|
209 | 209 | mtn: committed revision 4a736634505795f17786fffdf2c9cbf5b11df6f6 |
|
210 | ||
|
211 | test suspending (closing a branch) | |
|
212 | ||
|
213 | $ mtn suspend 4a736634505795f17786fffdf2c9cbf5b11df6f6 2> /dev/null | |
|
210 | 214 | $ cd .. |
|
211 | 215 | |
|
212 | 216 | convert incrementally |
@@ -355,3 +359,10 b' check divergent directory moves' | |||
|
355 | 359 | dir8-2/a |
|
356 | 360 | dir9-2/b |
|
357 | 361 | e |
|
362 | ||
|
363 | check branch closing | |
|
364 | ||
|
365 | $ hg branches -a | |
|
366 | $ hg branches -c | |
|
367 | com.selenic.test 13:* (closed) (glob) | |
|
368 |
General Comments 0
You need to be logged in to leave comments.
Login now