# HG changeset patch # User Gilles Moris # Date 1273474386 -7200 # Node ID e84600b0d81b7a3946fe3833239c68cee39f27ef # Parent acd61dc44a397ead4eab09b9dd78b35f75cdb856 commit: inform the commiter when resurrecting a closed changeset diff -r acd61dc44a39 -r e84600b0d81b mercurial/commands.py --- a/mercurial/commands.py Mon May 10 08:43:36 2010 +0200 +++ b/mercurial/commands.py Mon May 10 08:53:06 2010 +0200 @@ -745,6 +745,11 @@ (parents[1] == nullrev or len(cl.heads(cl.node(parents[1]))) > 1)): ui.status(_('created new head\n')) + if not opts.get('close_branch'): + for r in parents: + if repo[r].extra().get('close'): + ui.status(_('reopening closed branch head %d\n') % r) + if ui.debugflag: ui.write(_('committed changeset %d:%s\n') % (rev, hex(node))) elif ui.verbose: diff -r acd61dc44a39 -r e84600b0d81b tests/test-branches.out --- a/tests/test-branches.out Mon May 10 08:43:36 2010 +0200 +++ b/tests/test-branches.out Mon May 10 08:53:06 2010 +0200 @@ -171,6 +171,7 @@ date: Thu Jan 01 00:00:09 1970 +0000 summary: prune bad branch +reopening closed branch head 12 --- branch b is back in action b 13:6ac12926b8c3 a branch name much longer than the default justification used by branches 7:10ff5895aa57