equal
deleted
inserted
replaced
585 node = cmdutil.commit(ui, repo, commitfunc, pats, opts) |
585 node = cmdutil.commit(ui, repo, commitfunc, pats, opts) |
586 if not node: |
586 if not node: |
587 return |
587 return |
588 cl = repo.changelog |
588 cl = repo.changelog |
589 rev = cl.rev(node) |
589 rev = cl.rev(node) |
590 ui.note(_('committed changeset %s\n') % short(node)) |
|
591 parents = cl.parentrevs(rev) |
590 parents = cl.parentrevs(rev) |
592 if rev - 1 in parents: |
591 if rev - 1 in parents: |
593 # one of the parents was the old tip |
592 # one of the parents was the old tip |
594 return |
593 return |
595 if (parents == (nullrev, nullrev) or |
594 if (parents == (nullrev, nullrev) or |