Commits

Yuya Nishihara committed 116f9fb

workbench: use "path:" pattern in place of glob for command-line filename filter

This can eliminate check of file type.

  • Participants
  • Parent commits cc92907

Comments (0)

Files changed (1)

File tortoisehg/hgqt/run.py

     return filedialogs.FileLogDialog(repoagent, filename)
 
 def _formatfilerevset(pats):
-    q = []
-    for f in pats:
-        pat = hglib.canonpaths([f])[0]
-        if os.path.isdir(f):
-            q.append('file("%s/**")' % pat)
-        elif os.path.isfile(f):
-            q.append('file("%s")' % pat)
+    q = ["file('path:%s')" % f for f in hglib.canonpaths(pats)]
     return ' or '.join(q)
 
 def _workbench(ui, *pats, **opts):