Commits

Yuya Nishihara committed 4deb556

menu: unify "Diff to Parent" string and add access key

Comments (0)

Files changed (5)

tortoisehg/hgqt/filectxactions.py

              _('Show the history of the selected file'), self.filterfile),
             ('diffnavigate', _('Compare file revisions'), 'compare-files', None,
              _('Compare revisions of the selected file'), self.diffNavigate),
-            ('diff', _('Diff to parent'), 'visualdiff', 'Ctrl+D',
+            ('diff', _('&Diff to Parent'), 'visualdiff', 'Ctrl+D',
              _('View file changes in external diff tool'), self.vdiff),
             ('ldiff', _('Diff to local'), 'ldiff', 'Shift+Ctrl+D',
              _('View changes to current in external diff tool'),

tortoisehg/hgqt/filedialogs.py

             return
         if self.menu is None:
             self.menu = menu = QMenu(self)
-            a = menu.addAction(_('Diff to parent...'))
+            a = menu.addAction(_('&Diff to Parent'))
             a.setIcon(qtlib.getmenuicon('visualdiff'))
             a.triggered.connect(self.onVisualDiff)
             a = menu.addAction(_('Diff to local...'))

tortoisehg/hgqt/grep.py

         for key, name, func, shortcut in (
             ('edit',  _('View file'),      self.onViewFile,      'CTRL+E'),
             ('ctx',   _('View Changeset'), self.onViewChangeset, 'CTRL+V'),
-            ('vdiff', _('Diff to parent'), self.onVisualDiff,    'CTRL+D'),
+            ('vdiff', _('&Diff to Parent'), self.onVisualDiff,   'CTRL+D'),
             ('ann',   _('Annotate file'),  self.onAnnotateFile,  'CTRL+F')):
             action = QAction(name, self)
             action.triggered.connect(func)

tortoisehg/hgqt/repowidget.py

         entry(menu, None, isrev, _('Update...'), 'hg-update',
               self.updateToRevision)
         entry(menu)
-        entry(menu, None, isctx, _('Diff to parent...'), 'visualdiff',
+        entry(menu, None, isctx, _('&Diff to Parent'), 'visualdiff',
               self.visualDiffRevision)
         entry(menu, None, isrev, _('Diff to local...'), 'ldiff',
               self.visualDiffToLocal)

tortoisehg/hgqt/wctxactions.py

             parent.addAction(action)
             allactions.append(action)
 
-        make(_('&Diff to parent'), vdiff, frozenset('MAR!'), 'visualdiff', 'CTRL+D')
+        make(_('&Diff to Parent'), vdiff, frozenset('MAR!'), 'visualdiff', 'CTRL+D')
         make(_('Copy patch'), copyPatch, frozenset('MAR!'), 'copy-patch')
         make(_('Edit'), edit, frozenset('MACI?'), 'edit-file', 'SHIFT+CTRL+E')
         make(_('Open'), openfile, frozenset('MACI?'), '', 'SHIFT+CTRL+L')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.