hidden: Add a hiddenrevs attributes to changelog.
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 16 Jun 2011 01:57:53 +0200
changeset 14643 7e295dd10d40
parent 14642 fdcdb221a922
child 14644 f3a40fd7008c
hidden: Add a hiddenrevs attributes to changelog. This attributes hold the set of all revisions that should be ommited by command and tools displaying changesets. This set is given as a hit. Command and tools are responsible to check it in order to filter they outpur. Code adding revisions to the set are responsible to the consistency of it's data.
mercurial/changelog.py
--- a/mercurial/changelog.py	Thu Jun 16 13:24:44 2011 -0500
+++ b/mercurial/changelog.py	Thu Jun 16 01:57:53 2011 +0200
@@ -107,6 +107,8 @@
         self._realopener = opener
         self._delayed = False
         self._divert = False
+        # hiddenrevs: revs that should be hidden by command and tools
+        self.hiddenrevs = set()
 
     def delayupdate(self):
         "delay visibility of index updates to other readers"