changeset 669:a8101fc49663

Backed out changeset d0692ce98ea6 I applied the wrong version of Peter's patch.
author Augie Fackler <durin42@gmail.com>
date Thu, 19 Aug 2010 10:52:38 -0500
parents d0692ce98ea6
children 186f13b35d15
files hgsubversion/svnmeta.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
@@ -55,7 +55,9 @@ class SVNMeta(object):
                                                  'usebranchnames', True)
 
         # FIXME: test that this hasn't changed! defer & compare?
-        self.subdir = subdir and '/'.join(p for p in subdir.split('/') if p) or ''
+        self.subdir = subdir
+        if self.subdir and self.subdir[0] == '/':
+            self.subdir = self.subdir[1:]
         self.branches = {}
         if os.path.exists(self.branch_info_file):
             f = open(self.branch_info_file)