diff mercurial/subrepo.py @ 10457:4f38d03d4975 stable

subrepo: make sure that the source path is stripped Test by Patrick Mézard <pmezard@gmail.com>
author David Soria Parra <dsp@php.net>
date Tue, 09 Feb 2010 18:32:57 +0100
parents e1401c74572f
children f77f3383c666
line wrap: on
line diff
--- 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