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

cmenu: hide 'Revision Graph' menu option if unconfigured

As per release notes, this option goes away in 0.4. However, based on
user feedback they would like the option to still be available if they
go through the trouble of re-enabling it.

Changeset f0bd8e3ca4f0

Parent 748ab03fa73e

by Steve Borho

Changes to one file · Browse files at f0bd8e3ca4f0 Showing diff from parent 748ab03fa73e Diff from another changeset...

 
354
355
356
357
358
359
360
361
 
 
 
 
362
363
364
 
354
355
356
 
 
 
 
 
357
358
359
360
361
362
363
@@ -354,11 +354,10 @@
  _("Search revisions of files for a text pattern"),   self._grep, icon="menurepobrowse.ico"))   - has_view = ui.ui().config('tortoisehg', 'view', '') != '' - result.append(TortoiseMenu(_("Revision Graph"), - _("View history with DAG graph"), - self._view, icon="menurevisiongraph.ico", - state=has_view)) + if repo.ui.config('tortoisehg', 'view'): + result.append(TortoiseMenu(_("Revision Graph"), + _("View history with DAG graph"), + self._view, icon="menurevisiongraph.ico")     result.append(TortoiseMenuSep())