comparison mercurial/exchange.py @ 22693:68439b154063

exchange: have `pull` return the pulloperation object We mimic what was done for `push` for similar reason. We are about to drop `localrepo.pull` (for consistency with dropping `localrepo.push` and we better have an API as extensible as `push` is. Find explanations about localrepo.push removal in 4d52e6eb98ea.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Oct 2014 11:07:47 -0500
parents 0f8120c1ecf5
children dae236906fb2
comparison
equal deleted inserted replaced
22692:78c916f24dd9 22693:68439b154063
864 pullop.closetransaction() 864 pullop.closetransaction()
865 finally: 865 finally:
866 pullop.releasetransaction() 866 pullop.releasetransaction()
867 lock.release() 867 lock.release()
868 868
869 return pullop.cgresult 869 return pullop
870 870
871 def _pulldiscovery(pullop): 871 def _pulldiscovery(pullop):
872 """discovery phase for the pull 872 """discovery phase for the pull
873 873
874 Current handle changeset discovery only, will change handle all discovery 874 Current handle changeset discovery only, will change handle all discovery