diff mercurial/cmdutil.py @ 17207:62c56c94c77e

hidden: move hiddenrevs set on the repository This set is always accessed through the repo for now. Having this set carried by the changelog make it complicated to: - initialize it, computing hidden set may involve revset call - lazy compute it, (1) only the changelog can detect someone access it, (2) only the repo have enought knowledge to compute it. In later version I expect he changelog to apply filtering itself and the set to be carried by changelog again.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 16 Jul 2012 17:44:46 +0200
parents afd75476939e
children 2e0805f59736
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Jul 13 14:38:49 2012 +0200
+++ b/mercurial/cmdutil.py	Mon Jul 16 17:44:46 2012 +0200
@@ -1396,7 +1396,7 @@
     if not opts.get('hidden'):
         # --hidden is still experimental and not worth a dedicated revset
         # yet. Fortunately, filtering revision number is fast.
-        revs = (r for r in revs if r not in repo.changelog.hiddenrevs)
+        revs = (r for r in revs if r not in repo.hiddenrevs)
     else:
         revs = iter(revs)
     return revs, expr, filematcher