Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

cmenu: only allow annotation on files

Changeset 6e4bdbcc9464

Parent 95b14e327e3b

by TK Soh

Changes to one file · Browse files at 6e4bdbcc9464 Showing diff from parent 95b14e327e3b Diff from another changeset...

 
337
338
339
 
 
 
 
 
 
 
340
341
342
 
 
343
344
345
 
337
338
339
340
341
342
343
344
345
346
347
348
 
349
350
351
352
353
@@ -337,9 +337,17 @@
  result.append(TortoiseMenu(_("Undo Changes"),   _("Revert selected files"),   self._revert, icon="menurevert.ico")) + + # we can only annotate file but not directories + annotatible = len(self._filenames) > 0 + for f in self._filenames: + if not os.path.isfile(f): + annotatible = False + break   result.append(TortoiseMenu(_("Annotate Files"),   _("show changeset information per file line"), - self._annotate, icon="menublame.ico")) + self._annotate, icon="menublame.ico", + state=annotatible))     result.append(TortoiseMenuSep())   result.append(TortoiseMenu(_("Update To Revision"),