# HG changeset patch # User Martin Geisler # Date 1279131931 -7200 # Node ID ea2cdee9a1fe78f5dfc7f2df2c6cb914abb23773 # Parent 9d88597470afabaf1174dd0cd47c875074bcb9dc subrepos: let caller specify a filename for SVN commands diff -r 9d88597470af -r ea2cdee9a1fe mercurial/subrepo.py --- a/mercurial/subrepo.py Wed Jul 14 20:25:31 2010 +0200 +++ b/mercurial/subrepo.py Wed Jul 14 20:25:31 2010 +0200 @@ -318,8 +318,8 @@ self._ctx = ctx self._ui = ctx._repo.ui - def _svncommand(self, commands): - path = os.path.join(self._ctx._repo.origroot, self._path) + def _svncommand(self, commands, filename=''): + path = os.path.join(self._ctx._repo.origroot, self._path, filename) cmd = ['svn'] + commands + [path] cmd = [util.shellquote(arg) for arg in cmd] cmd = util.quotecommand(' '.join(cmd))