Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 6932:d557749c627a
Have verbose flag print the changeset hash when committing
author | Gilles Moris <gilles.moris@free.fr> |
---|---|
date | Fri, 22 Aug 2008 13:25:35 +0200 |
parents | a58a611c320f |
children | abb915d9d8db |
comparison
equal
deleted
inserted
replaced
6931:02f4a0bcfdce | 6932:d557749c627a |
---|---|
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)) | |
590 parents = cl.parentrevs(rev) | 591 parents = cl.parentrevs(rev) |
591 if rev - 1 in parents: | 592 if rev - 1 in parents: |
592 # one of the parents was the old tip | 593 # one of the parents was the old tip |
593 return | 594 return |
594 if (parents == (nullrev, nullrev) or | 595 if (parents == (nullrev, nullrev) or |