changeset 558:e841e65390d0

push: try a little harder to not send invalid paths to svn
author Augie Fackler <durin42@gmail.com>
date Sun, 14 Feb 2010 14:06:04 -0600
parents d74bf020a61c
children 66a8bdff9ced
files hgsubversion/pushmod.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/pushmod.py
+++ b/hgsubversion/pushmod.py
@@ -15,7 +15,10 @@ class NoFilesException(Exception):
 
 def _isdir(svn, branchpath, svndir):
     try:
-        svn.list_dir('%s/%s' % (branchpath, svndir))
+        path = ''
+        if branchpath:
+            path = branchpath + '/'
+        svn.list_dir('%s%s' % (path, svndir))
         return True
     except core.SubversionException:
         return False