[py-svn] r8378 - py/dist/py/path/svn

hpk at codespeak.net hpk at codespeak.net
Tue Jan 18 13:43:42 CET 2005


Author: hpk
Date: Tue Jan 18 13:43:42 2005
New Revision: 8378

Modified:
   py/dist/py/path/svn/urlcommand.py
   py/dist/py/path/svn/wccommand.py
Log:
be a bit careful with respect to spaces in filenames 
(but we should start to use .sysexec() here anyway ...) 



Modified: py/dist/py/path/svn/urlcommand.py
==============================================================================
--- py/dist/py/path/svn/urlcommand.py	(original)
+++ py/dist/py/path/svn/urlcommand.py	Tue Jan 18 13:43:42 2005
@@ -38,7 +38,7 @@
             l = ['svn %s -r %d' % (cmd, self.rev)]
         args = map(lambda x: '"%s"' % str(x), args)
         l.extend(args)
-        l.append(str(self.strpath))
+        l.append(repr(self.strpath))
         # fixing the locale because we can't otherwise parse
         string = svncommon.fixlocale() + " ".join(l)
         #print "execing", string
@@ -49,7 +49,7 @@
         l = ['svn %s' % cmd]
         args = map(lambda x: '"%s"' % str(x), args)
         l.extend(args)
-        l.append(str(self.strpath))
+        l.append(repr(self.strpath))
         # fixing the locale because we can't otherwise parse
         string = svncommon.fixlocale() + " ".join(l)
         #print "execing", string

Modified: py/dist/py/path/svn/wccommand.py
==============================================================================
--- py/dist/py/path/svn/wccommand.py	(original)
+++ py/dist/py/path/svn/wccommand.py	Tue Jan 18 13:43:42 2005
@@ -57,7 +57,7 @@
         l = ['svn %s' % cmd]
         args = map(lambda x: '"%s"' % x, args)
         l.extend(args)
-        l.append(self.strpath)
+        l.append(repr(self.strpath))
         # try fixing the locale because we can't otherwise parse
         string = svncommon.fixlocale() + " ".join(l)
         if DEBUG:



More information about the pytest-commit mailing list