1. Basie Project
  2. vcsbrowser

Commits

Joel Crocker  committed 380135e

Added fix for svn diff directory on root of repository bug.

A trailing forward slash in the URL to be diffed will now be stripped, thereby canonicalizing the URL.

  • Participants
  • Parent commits f3b3bf4
  • Branches repo_browser

Comments (0)

Files changed (1)

File apps/vcsbrowser/backends/svn/svn.py

View file
         rev2 = int(rev2) if rev2 else -1
 
         url = self.repo_path + "/" + path
+        if (url[len(url)-1:] == "/"):
+            url = url[:-1]
 
         diff = self.client.diff(rev1, rev2, url, url)
         diff[0].seek(0)