Mercurial > hg > hgforest
changeset 102:11f39395838e
Fix SSH repos on hg 1.7
author | Michael Tharp <mtharp@rpath.com> |
---|---|
date | Tue, 16 Nov 2010 10:54:33 -0500 |
parents | 988ad510ef97 |
children | 7544ee807938 |
files | forest.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/forest.py Mon Nov 15 11:08:41 2010 -0500 +++ b/forest.py Tue Nov 16 10:54:33 2010 -0500 @@ -222,7 +222,13 @@ raise util.Abort(_("Remote forests cannot be cloned because the " "other repository doesn't support the forest " "extension.")) - data = self.call("forests", walkhg=("", "True")[walkhg]) + if hasattr(self, 'call'): + # hg < 1.7 + func = self.call + else: + # hg >= 1.7 + func = self._call + data = func("forests", walkhg=("", "True")[walkhg]) return data.splitlines() sshrepo.sshrepository.forests = _sshrepo_forests