remote-hg: adjust to hg 1.9

hg 1.0 changed the signature of hg.clone(). Adjust to it.

A real fix would need to check the hg version or try/catch.
This commit is contained in:
Michael J Gruber
2012-03-16 15:54:33 +01:00
committed by Pat Thoyts
parent 64dd19ab54
commit 30723a9bd4

View File

@@ -23,7 +23,7 @@ class NonLocalHg(object):
from_path = self.repo.path
self.repo.ui.setconfig('ui', 'quiet', "true")
self.hg.clone(self.repo.ui, from_path, path, update=False, pull=True)
self.hg.clone(self.repo.ui, {}, from_path, path, update=False, pull=True)
return path