localrepository.push: propagate return value
authorVadim Gelfer <vadim.gelfer@gmail.com>
Tue, 20 Jun 2006 15:14:12 -0700
changeset 2463 6ab016edd5c4
parent 2462 d610bcfd66a8
child 2464 09b1c9ef317c
localrepository.push: propagate return value
mercurial/localrepo.py
--- 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 = {}