hgext/graphlog.py
changeset 16431 c85098cdd7df
parent 16412 1a10bee86e33
child 16432 365bb0fa73a4
--- a/hgext/graphlog.py	Wed Mar 28 11:42:17 2012 +0200
+++ b/hgext/graphlog.py	Sat Apr 14 10:30:38 2012 +0200
@@ -427,6 +427,10 @@
         # filtered result.
         matched = set(revset.match(repo.ui, expr)(repo, sorted(revs)))
         revs = [r for r in revs if r in matched]
+    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]
     return revs, expr, filematcher
 
 def generate(ui, dag, displayer, showparents, edgefn, getrenamed=None,