1. timeless
  2. thg

Commits

Steve Borho  committed c9cc148

datamine: fix processing of filelist from cmenu

  • Participants
  • Parent commits 674e4ab
  • Branches default

Comments (0)

Files changed (1)

File hggtk/datamine.py

View file
         '''
         if revid == '.':
             parentctx = self.repo.workingctx().parents()
-            rev = parentctx[0].rev()
+            rev = parentctx[0].filectx(path).rev()
             revid = str(rev)
         else:
             rev = long(revid)
 
     dialog = DataMineDialog(u, repo, cwd, files, cmdoptions, True)
     dialog.display()
-    if len(files) > 1:
-        for f in files:
-            dialog.add_annotate_page(f, '.')
-    elif files and not os.path.isdir(files[0]):
-        dialog.add_annotate_page(files[0], '.')
-    else:
+    cfiles = [util.canonpath(root, cwd, f) for f in files if os.path.isfile(f)]
+    for f in cfiles:
+        dialog.add_annotate_page(f, '.')
+    if not cfiles:
         dialog.add_search_page()
 
     gtk.gdk.threads_init()