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

hggtk/datamine: fix invocation from CLI

Changeset bea7aabf45bc

Parent c9cc148b2379

by Steve Borho

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

Change 1 of 3 Show Entire File hggtk/​datamine.py Stacked
 
333
334
335
336
337
 
 
 
338
339
340
 
584
585
586
 
 
587
588
589
590
591
592
 
599
600
601
 
602
603
 
 
 
604
 
333
334
335
 
 
336
337
338
339
340
341
 
585
586
587
588
589
590
591
 
592
593
594
 
601
602
603
604
605
 
606
607
608
609
@@ -333,8 +333,9 @@
  revision 'revid'.   '''   if revid == '.': - parentctx = self.repo.workingctx().parents() - rev = parentctx[0].filectx(path).rev() + ctx = self.repo.workingctx().parents()[0] + fctx = ctx.filectx(path) + rev = fctx.filelog().linkrev(fctx.filenode())   revid = str(rev)   else:   rev = long(revid) @@ -584,9 +585,10 @@
  'include':[], 'exclude':[]   }   + cfiles = [util.canonpath(root, cwd, f) for f in files if os.path.isfile(f)] +   dialog = DataMineDialog(u, repo, cwd, files, cmdoptions, True)   dialog.display() - 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: @@ -599,6 +601,9 @@
   if __name__ == "__main__":   import sys + import hglib   opts = {} - opts['root'] = len(sys.argv) > 1 and sys.argv[1] or os.getcwd() + opts['cwd'] = os.getcwd() + opts['root'] = hglib.rootpath() + opts['files'] = sys.argv[1:] or []   run(**opts)