Comments
Patch
@@ -1348,3 +1348,18 @@
repo._lfautocommit = False
return orig(commandname, repo, wrapper, **props)
+
+def cmdutilautoupdate(orig, commandname, repo, updatefunc):
+ # "_lfautocommit" attribute must be created at automated updating
+ # to suppress displaying some status messages
+ def wrapper(*args, **kwargs):
+ # to detect unexpected nesting
+ assert not getattr(repo, '_lfautocommit', False)
+
+ repo._lfautocommit = commandname
+ try:
+ return updatefunc(*args, **kwargs)
+ finally:
+ repo._lfautocommit = False
+
+ return orig(commandname, repo, wrapper)
@@ -126,6 +126,8 @@
overrides.overridebailifchanged)
extensions.wrapfunction(cmdutil, 'autocommit',
overrides.cmdutilautocommit)
+ extensions.wrapfunction(cmdutil, 'autoupdate',
+ overrides.cmdutilautoupdate)
extensions.wrapfunction(scmutil, 'marktouched',
overrides.scmutilmarktouched)