comparison 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
comparison
equal deleted inserted replaced
10456:64a6a896e5fb 10457:4f38d03d4975
39 if src.startswith('['): 39 if src.startswith('['):
40 if ']' not in src: 40 if ']' not in src:
41 raise util.Abort(_('missing ] in subrepo source')) 41 raise util.Abort(_('missing ] in subrepo source'))
42 kind, src = src.split(']', 1) 42 kind, src = src.split(']', 1)
43 kind = kind[1:] 43 kind = kind[1:]
44 state[path] = (src, rev.get(path, ''), kind) 44 state[path] = (src.strip(), rev.get(path, ''), kind)
45 45
46 return state 46 return state
47 47
48 def writestate(repo, state): 48 def writestate(repo, state):
49 repo.wwrite('.hgsubstate', 49 repo.wwrite('.hgsubstate',