[PATCH] subrepo: make sure that the source path is stripped

David Soria Parra sn_ at gmx.net
Tue Feb 9 11:33:45 CST 2010


# HG changeset patch
# User David Soria Parra <dsp at php.net>
# Date 1265736777 -3600
# Node ID 934e60c06afb90922ff4163190512512b5217006
# Parent  9b87c5f4c634b9718940e6380a62d7fcf1bcddaf
subrepo: make sure that the source path is stripped

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -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
 


More information about the Mercurial-devel mailing list