Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable annotate: more gracefully handle multiple file selections

ui.warn() goes nowhere in a GUI, so just take the first filename until the
annotate dialog can do something useful with mulitple files.

Changeset 05ebcea58c34

Parent 088e3bf88bb2

by Steve Borho

Changes to one file · Browse files at 05ebcea58c34 Showing diff from parent 088e3bf88bb2 Diff from another changeset...

 
696
697
698
699
 
 
 
 
700
701
702
 
696
697
698
 
699
700
701
702
703
704
705
@@ -696,7 +696,10 @@
  from tortoisehg.hgqt.annotate import run   if len(pats) != 1:   ui.warn(_('annotate requires a single filename\n')) - return + if pats: + pats = pats[0:] + else: + return   return qtrun(run, ui, *pats, **opts)    def init(ui, *pats, **opts):