Mercurial > public > mercurial-scm > hg
comparison mercurial/subrepo.py @ 11560:ea2cdee9a1fe
subrepos: let caller specify a filename for SVN commands
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 14 Jul 2010 20:25:31 +0200 |
parents | 9d88597470af |
children | 324bad1dc230 |
comparison
equal
deleted
inserted
replaced
11559:9d88597470af | 11560:ea2cdee9a1fe |
---|---|
316 self._path = path | 316 self._path = path |
317 self._state = state | 317 self._state = state |
318 self._ctx = ctx | 318 self._ctx = ctx |
319 self._ui = ctx._repo.ui | 319 self._ui = ctx._repo.ui |
320 | 320 |
321 def _svncommand(self, commands): | 321 def _svncommand(self, commands, filename=''): |
322 path = os.path.join(self._ctx._repo.origroot, self._path) | 322 path = os.path.join(self._ctx._repo.origroot, self._path, filename) |
323 cmd = ['svn'] + commands + [path] | 323 cmd = ['svn'] + commands + [path] |
324 cmd = [util.shellquote(arg) for arg in cmd] | 324 cmd = [util.shellquote(arg) for arg in cmd] |
325 cmd = util.quotecommand(' '.join(cmd)) | 325 cmd = util.quotecommand(' '.join(cmd)) |
326 env = dict(os.environ) | 326 env = dict(os.environ) |
327 # Avoid localized output, preserve current locale for everything else. | 327 # Avoid localized output, preserve current locale for everything else. |