Commits

Steve Borho  committed 62b90c0

visdiff: fix diff-to-local with file filters

Closes #1065

  • Participants
  • Parent commits 807eac0
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/visdiff.py

                        None).run()
         return None
 
-    lpats = [util.localpath(f) for f in pats]
-    m = match.match(repo.root, repo.root, lpats)
+    pats = cmdutil.expandpats(pats)
+    m = match.match(repo.root, '', pats, None, None, 'relpath')
     n2 = ctx2.node()
     mod_a, add_a, rem_a = map(set, repo.status(ctx1a.node(), n2, m)[:3])
     if ctx1b: