diff mercurial/bookmarks.py @ 35712:a1a5c3842b6f

bookmarks: display the obsfate of hidden revision we create a bookmark on Display the same message we added recently to the filtered error message create a bookmark on an hidden revision. Differential Revision: https://phab.mercurial-scm.org/D1870
author Boris Feld <boris.feld@octobus.net>
date Tue, 16 Jan 2018 14:28:57 +0100
parents 5a2d505a9174
children cd2342302928
line wrap: on
line diff
--- a/mercurial/bookmarks.py	Tue Jan 16 14:08:54 2018 +0100
+++ b/mercurial/bookmarks.py	Tue Jan 16 14:28:57 2018 +0100
@@ -861,6 +861,11 @@
 
     if hiddenrev:
         repo.ui.warn(_("bookmarking hidden changeset %s\n") % hiddenrev)
+
+        if ctx.obsolete():
+            msg = obsutil._getfilteredreason(repo, "%s" % hiddenrev, ctx)
+            repo.ui.warn("(%s)\n" % msg)
+
     marks.applychanges(repo, tr, changes)
     if not inactive and cur == marks[newact] and not rev:
         activate(repo, newact)