# HG changeset patch # User Eric Eisner # Date 1300393749 14400 # Node ID a7c9735307bda4f43fd7f5452a3eb71095e01020 # Parent c97ad3bd0b8df64d6be92e279d7cb6f5bf57b373 subrepo: recognize scp-style paths as git URLs diff -r c97ad3bd0b8d -r a7c9735307bd mercurial/subrepo.py --- a/mercurial/subrepo.py Wed Mar 16 17:42:42 2011 +0100 +++ b/mercurial/subrepo.py Thu Mar 17 16:29:09 2011 -0400 @@ -757,6 +757,11 @@ 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)