hgrepo.pull: use githandler property

This commit is contained in:
Siddharth Agarwal 2014-02-19 14:12:38 -08:00
parent 728f8df8de
commit 63f40c5059

View File

@ -11,8 +11,7 @@ def generate_repo_subclass(baseclass):
class hgrepo(baseclass):
def pull(self, remote, heads=None, force=False):
if isinstance(remote, gitrepo):
git = GitHandler(self, self.ui)
return git.fetch(remote.path, heads)
return self.githandler.fetch(remote.path, heads)
else: #pragma: no cover
return super(hgrepo, self).pull(remote, heads, force)