diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -866,7 +866,7 @@ def pull(repo, remote, heads=None, force pullop.releasetransaction() lock.release() - return pullop.cgresult + return pullop def _pulldiscovery(pullop): """discovery phase for the pull diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1575,7 +1575,7 @@ class localrepository(object): return r def pull(self, remote, heads=None, force=False, **kwargs): - return exchange.pull(self, remote, heads, force, **kwargs) + return exchange.pull(self, remote, heads, force, **kwargs).cgresult def checkpush(self, pushop): """Extensions can override this function if additional checks have