Changeset c9cc148b2379…
Parent 674e4ab67aa4…
by
Changes to one file · Browse files at c9cc148b2379 Showing diff from parent 674e4ab67aa4 Diff from another changeset...
@@ -334,7 +334,7 @@ '''
if revid == '.':
parentctx = self.repo.workingctx().parents()
- rev = parentctx[0].rev()
+ rev = parentctx[0].filectx(path).rev()
revid = str(rev)
else:
rev = long(revid)
@@ -586,12 +586,10 @@
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()
|
Loading...