# HG changeset patch # User Eric Eisner # Date 2011-03-17 20:29:09 # Node ID a7c9735307bda4f43fd7f5452a3eb71095e01020 # Parent c97ad3bd0b8df64d6be92e279d7cb6f5bf57b373 subrepo: recognize scp-style paths as git URLs diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -757,6 +757,11 @@ class gitsubrepo(abstractsubrepo): return tracking def _abssource(self, source): + if '://' not in source: + # recognize the scp syntax as an absolute source + colon = source.find(':') + if colon != -1 and '/' not in source[:colon]: + return source self._subsource = source return _abssource(self)