Commits

Steve Borho committed 71aa97c Merge

Merge with stable

  • Participants
  • Parent commits 6c6d2cd, 20afa54

Comments (0)

Files changed (3)

contrib/mergetools.rc

 p4merge.diffargs=$parent $child
 p4merge.diff3args=$child $parent1 $parent2
 p4merge.dirdiff=False
+p4merge.checkchanged = True
 
 tortoisemerge.priority=-9
 tortoisemerge.args=/base:$base /mine:$local /theirs:$other /merged:$output

tortoisehg/hgqt/graph.py

 
 from mercurial import util, error
 
+try:
+    from mercurial import repoview
+    _filterrevs = repoview.filterrevs
+except ImportError: # hg < 2.5
+    def _filterrevs(repo, filtername):
+        return []
+
 def revision_grapher(repo, **opts):
     """incremental revision grapher
 
 
     revset = opts.get('revset', None)
     branch = opts.get('branch', None)
+    revhidden = _filterrevs(repo, 'visible')
     if revset:
         start_rev = max(revset)
         stop_rev = min(revset)
         follow = False
-        hidden = lambda rev: rev not in revset
+        hidden = lambda rev: (rev not in revset) or (rev in revhidden)
     else:
         start_rev = opts.get('start_rev', None)
         stop_rev = opts.get('stop_rev', 0)
         follow = opts.get('follow', False)
-        hidden = lambda rev: False
+        hidden = lambda rev: rev in revhidden
 
     assert start_rev is None or start_rev >= stop_rev
 

tortoisehg/hgqt/reporegistry.py

     def removeSelected(self):
         'remove selected repository'
         s = self.selitem
+        if not s:
+            return
         item = s.internalPointer()
         if 'remove' not in item.menulist():  # check capability
             return