# HG changeset patch # User Augie Fackler # Date 1266177964 21600 # Node ID e841e65390d0688698d7ba0c901caa1f0cd3765f # Parent d74bf020a61c6c503bcff697ea01f5afdcd7fc80 push: try a little harder to not send invalid paths to svn diff --git a/hgsubversion/pushmod.py b/hgsubversion/pushmod.py --- 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