Show More
@@ -291,14 +291,18 b' class monotone_source(converter_source, ' | |||||
291 | return data, attr |
|
291 | return data, attr | |
292 |
|
292 | |||
293 | def getcommit(self, rev): |
|
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 | return commit( |
|
298 | return commit( | |
296 | author=certs["author"], |
|
299 | author=certs["author"], | |
297 | date=util.datestr(util.strdate(certs["date"], "%Y-%m-%dT%H:%M:%S")), |
|
300 | date=util.datestr(util.strdate(certs["date"], "%Y-%m-%dT%H:%M:%S")), | |
298 | desc=certs["changelog"], |
|
301 | desc=certs["changelog"], | |
299 | rev=rev, |
|
302 | rev=rev, | |
300 | parents=self.mtnrun("parents", rev).splitlines(), |
|
303 | parents=self.mtnrun("parents", rev).splitlines(), | |
301 |
branch=certs["branch"] |
|
304 | branch=certs["branch"], | |
|
305 | extra=extra) | |||
302 |
|
306 | |||
303 | def gettags(self): |
|
307 | def gettags(self): | |
304 | tags = {} |
|
308 | tags = {} |
@@ -207,6 +207,10 b' test diverging directory moves' | |||||
207 | $ mtn ci -m divergentdirmove2 |
|
207 | $ mtn ci -m divergentdirmove2 | |
208 | mtn: beginning commit on branch 'com.selenic.test' |
|
208 | mtn: beginning commit on branch 'com.selenic.test' | |
209 | mtn: committed revision 4a736634505795f17786fffdf2c9cbf5b11df6f6 |
|
209 | mtn: committed revision 4a736634505795f17786fffdf2c9cbf5b11df6f6 | |
|
210 | ||||
|
211 | test suspending (closing a branch) | |||
|
212 | ||||
|
213 | $ mtn suspend 4a736634505795f17786fffdf2c9cbf5b11df6f6 2> /dev/null | |||
210 | $ cd .. |
|
214 | $ cd .. | |
211 |
|
215 | |||
212 | convert incrementally |
|
216 | convert incrementally | |
@@ -355,3 +359,10 b' check divergent directory moves' | |||||
355 | dir8-2/a |
|
359 | dir8-2/a | |
356 | dir9-2/b |
|
360 | dir9-2/b | |
357 | e |
|
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