Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

thgconfig: add --focus command line option

Changeset 6ee5573dea45

Parent 8b2cb5ec2691

by Steve Borho

Changes to 2 files · Browse files at 6ee5573dea45 Showing diff from parent 8b2cb5ec2691 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgtk.py Stacked
 
648
649
650
651
652
 
 
 
 
 
 
653
654
655
 
648
649
650
 
 
651
652
653
654
655
656
657
658
659
@@ -648,8 +648,12 @@
  "^status|st|diff": (status,   [('r', 'rev', [], _('revisions to compare'))],   _('hgtk status [FILE]...')), - "^userconfig": (userconfig, [], _('hgtk userconfig')), - "^repoconfig": (repoconfig, [], _('hgtk repoconfig')), + "^userconfig": (userconfig, [], + [('', 'focus', '', _('field to give initial focus'))], + _('hgtk userconfig')), + "^repoconfig": (repoconfig, + [('', 'focus', '', _('field to give initial focus'))], + _('hgtk repoconfig')),   "^guess": (guess, [], _('hgtk guess')),   "^remove|rm": (revert, [], _('hgtk remove [FILE]...')),   "^rename|mv": (rename, [], _('hgtk rename SOURCE [DEST]')),
 
1121
1122
1123
1124
 
 
 
 
 
1121
1122
1123
 
1124
1125
1126
1127
@@ -1121,4 +1121,7 @@
  return 0    def run(ui, *pats, **opts): - return ConfigDialog(opts.get('repomode')) + dlg = ConfigDialog(opts.get('repomode')) + if opts.get('focus', ''): + dlg.focus_field(opts['focus']) + return dlg