# HG changeset patch # User Martin Geisler # Date 2010-07-14 18:25:31 # Node ID ea2cdee9a1fe78f5dfc7f2df2c6cb914abb23773 # Parent 9d88597470afabaf1174dd0cd47c875074bcb9dc subrepos: let caller specify a filename for SVN commands diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -318,8 +318,8 @@ class svnsubrepo(abstractsubrepo): 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))