diff -r 64a6a896e5fb -r 4f38d03d4975 mercurial/subrepo.py --- a/mercurial/subrepo.py Sat Feb 13 23:50:38 2010 -0600 +++ b/mercurial/subrepo.py Tue Feb 09 18:32:57 2010 +0100 @@ -41,7 +41,7 @@ raise util.Abort(_('missing ] in subrepo source')) kind, src = src.split(']', 1) kind = kind[1:] - state[path] = (src, rev.get(path, ''), kind) + state[path] = (src.strip(), rev.get(path, ''), kind) return state