Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.3rc1, 0.3, and 0.4rc1

datamine: fix processing of filelist from cmenu

Changeset c9cc148b2379

Parent 674e4ab67aa4

by Steve Borho

Changes to one file · Browse files at c9cc148b2379 Showing diff from parent 674e4ab67aa4 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​datamine.py Stacked
 
334
335
336
337
 
338
339
340
 
586
587
588
589
590
591
592
593
594
 
 
 
 
595
596
597
 
334
335
336
 
337
338
339
340
 
586
587
588
 
 
 
 
 
 
589
590
591
592
593
594
595
@@ -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()