Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

thgstatus: introduce option --all

intended as a replacement for refreshicons.cmd

Changeset 78e96cd1af71

Parent a27ec43bfba3

by Adrian Buehlmann

Changes to 2 files · Browse files at 78e96cd1af71 Showing diff from parent a27ec43bfba3 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgtk.py Stacked
 
25
26
27
28
 
 
29
30
31
 
624
625
626
627
 
 
628
629
630
 
25
26
27
 
28
29
30
31
32
 
625
626
627
 
628
629
630
631
632
@@ -25,7 +25,8 @@
 from thgutil import hglib, paths, shlib  from thgutil import version as thgversion   -nonrepo_commands = 'userconfig clone debugcomplete init about help version' +nonrepo_commands = '''userconfig clone debugcomplete init about help +version thgstatus'''    # Add TortoiseHg signals, hooked to key accelerators in gtklib  for sig in ('copy-clipboard', 'thg-diff', 'thg-parent'): @@ -624,7 +625,8 @@
  ('n', 'notify', [], _('notify the shell for path(s) given')),   ('', 'remove', None, _('remove the status cache')),   ('s', 'show', None, _('show the contents of the' - ' status cache (no update)'))], + ' status cache (no update)')), + ('', 'all', None, _('udpate all repos in current dir')) ],   _('hgtk thgstatus [OPTION]')),   "^update|checkout|co": (update,   [('r', 'rev', '', _('revision to update'))],
 
14
15
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
18
19
 
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@@ -14,6 +14,20 @@
  return repo.join("thgstatus")    def run(_ui, *pats, **opts): + + if opts.get('all'): + roots = [] + base = os.getcwd() + for f in os.listdir(base): + r = paths.find_root(os.path.join(base, f)) + if r is not None: + roots.append(r) + for r in roots: + _ui.note("%s\n" % r) + shlib.update_thgstatus(_ui, r, wait=False) + shlib.shell_notify([r]) + return +   root = paths.find_root()   if opts.get('repository'):   root = opts.get('repository')