Mercurial > public > mercurial-scm > hg
comparison mercurial/subrepo.py @ 10954:33119d0252c1 stable
subrepo: fix repo root path handling in svn subrepo
author | Brett Cannon <brett@python.org> |
---|---|
date | Sun, 18 Apr 2010 14:20:08 -0700 |
parents | c90d923fff64 |
children | 8d5f5122a732 49e14ec67144 |
comparison
equal
deleted
inserted
replaced
10953:f1250e2e8fd1 | 10954:33119d0252c1 |
---|---|
271 self._state = state | 271 self._state = state |
272 self._ctx = ctx | 272 self._ctx = ctx |
273 self._ui = ctx._repo.ui | 273 self._ui = ctx._repo.ui |
274 | 274 |
275 def _svncommand(self, commands): | 275 def _svncommand(self, commands): |
276 cmd = ['svn'] + commands + [self._path] | 276 path = os.path.join(self._ctx._repo.origroot, self._path) |
277 cmd = ['svn'] + commands + [path] | |
277 cmd = [util.shellquote(arg) for arg in cmd] | 278 cmd = [util.shellquote(arg) for arg in cmd] |
278 cmd = util.quotecommand(' '.join(cmd)) | 279 cmd = util.quotecommand(' '.join(cmd)) |
279 env = dict(os.environ) | 280 env = dict(os.environ) |
280 # Avoid localized output, preserve current locale for everything else. | 281 # Avoid localized output, preserve current locale for everything else. |
281 env['LC_MESSAGES'] = 'C' | 282 env['LC_MESSAGES'] = 'C' |