Commits

Sebastian Sdorra  committed 39280a1

improve collection of files

  • Participants
  • Parent commits 38c37ce

Comments (0)

Files changed (1)

       paths.append(f)
   else:
     length = len(path.split('/')) + 1
+    directory = path
+    if not directory.endswith('/'):
+       directory += '/'
+       
     for f in mf:
-      if f.startswith(path):
+      if f.startswith(directory):
         paths.append(f)
   
   for p in paths:
     revision = 'tip'
   revCtx = repo[revision]
   path = opts['path']
+  if path.endswith('/'):
+    path = path[0:-1]
   transport = opts['transport']
   collectFiles(revCtx, path, files, directories)
   subRepositories = createSubRepositoryMap(revCtx)