Changeset 78e96cd1af71…
Parent a27ec43bfba3…
by
Changes to 2 files · Browse files at 78e96cd1af71 Showing diff from parent a27ec43bfba3 Diff from another changeset...
@@ -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,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')
|
Loading...