Changeset b3e40faf0872…
Parent 5f246c386b3d…
by
Changes to one file · Browse files at b3e40faf0872 Showing diff from parent 5f246c386b3d Diff from another changeset...
@@ -233,8 +233,8 @@
def add(ui, *pats, **opts):
"""add files"""
- from mercurial import dispatch
- dispatch.dispatch(['add'] + list(pats))
+ from mercurial import dispatch as _dispatch
+ _dispatch.dispatch(['add'] + list(pats))
shlib.update_thgstatus(ui, paths.find_root())
shlib.shell_notify([os.getcwd()])
@@ -252,9 +252,9 @@ """commit tool"""
ct = ui.config('tortoisehg', 'extcommit', None)
if ct == 'qct':
- from mercurial import dispatch
+ from mercurial import dispatch as _dispatch
try:
- dispatch.dispatch(ct, *pats, **opts)
+ _dispatch.dispatch(ct, *pats, **opts)
except SystemExit:
pass
return
|
Loading...