changeset 14643:7e295dd10d40

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.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 16 Jun 2011 01:57:53 +0200
parents fdcdb221a922
children f3a40fd7008c
files mercurial/changelog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"