changeset 2463:6ab016edd5c4

localrepository.push: propagate return value
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 20 Jun 2006 15:14:12 -0700
parents d610bcfd66a8
children 09b1c9ef317c
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Jun 20 15:13:17 2006 -0700
+++ b/mercurial/localrepo.py	Tue Jun 20 15:14:12 2006 -0700
@@ -1116,9 +1116,8 @@
         # servers, http servers).
 
         if 'unbundle' in remote.capabilities:
-            self.push_unbundle(remote, force, revs)
-        else:
-            self.push_addchangegroup(remote, force, revs)
+            return self.push_unbundle(remote, force, revs)
+        return self.push_addchangegroup(remote, force, revs)
 
     def prepush(self, remote, force, revs):
         base = {}