diff hgext/largefiles/overrides.py @ 17575:98d6a10bc401 stable

largefiles: preserve exit code from outgoing command (issue3611) This maintains the exit codes documented in commands.py.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 05 Sep 2012 21:26:08 -0400
parents e51d4aedace9
children e0081bb5450e
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Tue Sep 11 10:59:21 2012 -0300
+++ b/hgext/largefiles/overrides.py	Wed Sep 05 21:26:08 2012 -0400
@@ -968,7 +968,7 @@
     return toupload
 
 def overrideoutgoing(orig, ui, repo, dest=None, **opts):
-    orig(ui, repo, dest, **opts)
+    result = orig(ui, repo, dest, **opts)
 
     if opts.pop('large', None):
         toupload = getoutgoinglfiles(ui, repo, dest, **opts)
@@ -980,6 +980,8 @@
                 ui.status(lfutil.splitstandin(file) + '\n')
             ui.status('\n')
 
+    return result
+
 def overridesummary(orig, ui, repo, *pats, **opts):
     try:
         repo.lfstatus = True