##// END OF EJS Templates
commit: inform the commiter when resurrecting a closed changeset
Gilles Moris -
r11164:e84600b0 default
parent child Browse files
Show More
@@ -745,6 +745,11 b' def commit(ui, repo, *pats, **opts):'
745 (parents[1] == nullrev or len(cl.heads(cl.node(parents[1]))) > 1)):
745 (parents[1] == nullrev or len(cl.heads(cl.node(parents[1]))) > 1)):
746 ui.status(_('created new head\n'))
746 ui.status(_('created new head\n'))
747
747
748 if not opts.get('close_branch'):
749 for r in parents:
750 if repo[r].extra().get('close'):
751 ui.status(_('reopening closed branch head %d\n') % r)
752
748 if ui.debugflag:
753 if ui.debugflag:
749 ui.write(_('committed changeset %d:%s\n') % (rev, hex(node)))
754 ui.write(_('committed changeset %d:%s\n') % (rev, hex(node)))
750 elif ui.verbose:
755 elif ui.verbose:
@@ -171,6 +171,7 b' user: test'
171 date: Thu Jan 01 00:00:09 1970 +0000
171 date: Thu Jan 01 00:00:09 1970 +0000
172 summary: prune bad branch
172 summary: prune bad branch
173
173
174 reopening closed branch head 12
174 --- branch b is back in action
175 --- branch b is back in action
175 b 13:6ac12926b8c3
176 b 13:6ac12926b8c3
176 a branch name much longer than the default justification used by branches 7:10ff5895aa57
177 a branch name much longer than the default justification used by branches 7:10ff5895aa57
General Comments 0
You need to be logged in to leave comments. Login now