subrepos: let caller specify a filename for SVN commands
authorMartin Geisler <mg@lazybytes.net>
Wed, 14 Jul 2010 20:25:31 +0200
changeset 11560 ea2cdee9a1fe
parent 11559 9d88597470af
child 11563 cd6884231db8
subrepos: let caller specify a filename for SVN commands
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))