changeset 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 cd6884231db8
files mercurial/subrepo.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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))