[PATCH] subrepo: recognize scp-style paths as git URLs
Matt Mackall
mpm at selenic.com
Thu Mar 17 14:59:55 CDT 2011
On Thu, 2011-03-17 at 13:40 -0400, Eric Eisner wrote:
> # HG changeset patch
> # User Eric Eisner <ede at mit.edu>
> # Date 1300383507 14400
> # Branch stable
> # Node ID 6ecd20483e25f0cdf36709dc44fec14ec7028b42
> # 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,9 @@ class gitsubrepo(abstractsubrepo):
> return tracking
>
> def _abssource(self, source):
> + # recognize the scp syntax as an absolute source
> + if '://' not in source and ':' in source:
> + return source
Hrm, I don't think that ':' is definitive enough. Is there anything we
can do to make this test more stringent?
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list