D1286: repoview: also consider visibility exceptions in pinnedrevs

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Thu Nov 2 18:04:59 UTC 2017


pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This patch make repoview.pinnedrevs() also add visibility exceptions added in
  previous patch.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1286

AFFECTED FILES
  mercurial/repoview.py

CHANGE DETAILS

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -37,6 +37,9 @@
     pinned.update([par.rev() for par in repo[None].parents()])
     pinned.update([cl.rev(bm) for bm in repo._bookmarks.values()])
 
+    # add the visibility exceptions
+    pinned.update(repo.getvisibilityexceptions())
+
     tags = {}
     tagsmod.readlocaltags(repo.ui, repo, tags, {})
     if tags:



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list