comparison mercurial/debugcommands.py @ 42893:34a46d48d24e

debugobsolete: also issue the "new obsmarkers" messsage We are going to improve the way this message is issued in the core codebase. This will make it appears for `hg debugobsolete` too. Since this seems like a good idea, we make the output change in a previous changesets to clarify the next changeset.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 14 Oct 2018 13:19:24 +0200
parents 908ff446590e
children 38392d5bde8e
comparison
equal deleted inserted replaced
42892:a65c4715fb5d 42893:34a46d48d24e
1764 parents = repo.unfiltered()[prec].parents() 1764 parents = repo.unfiltered()[prec].parents()
1765 parents = tuple(p.node() for p in parents) 1765 parents = tuple(p.node() for p in parents)
1766 repo.obsstore.create(tr, prec, succs, opts['flags'], 1766 repo.obsstore.create(tr, prec, succs, opts['flags'],
1767 parents=parents, date=date, 1767 parents=parents, date=date,
1768 metadata=metadata, ui=ui) 1768 metadata=metadata, ui=ui)
1769 repo.ui.status(('1 new obsolescence markers\n'))
1769 tr.close() 1770 tr.close()
1770 except ValueError as exc: 1771 except ValueError as exc:
1771 raise error.Abort(_('bad obsmarker input: %s') % 1772 raise error.Abort(_('bad obsmarker input: %s') %
1772 pycompat.bytestr(exc)) 1773 pycompat.bytestr(exc))
1773 finally: 1774 finally: