# # # patch "tracvc/mtn/backend.py" # from [0e05b7ecd0e20de57c4d2b2244ea526ba211335e] # to [409beefcb402234e0468dd540eeb7c2df923097d] # ============================================================ --- tracvc/mtn/backend.py 0e05b7ecd0e20de57c4d2b2244ea526ba211335e +++ tracvc/mtn/backend.py 409beefcb402234e0468dd540eeb7c2df923097d @@ -260,7 +260,10 @@ class MonotoneRepository(Repository): # Note: in an mtn repository, there might be many file # hierarchies, so it makes no sense to ask for the latest # version of a path. + + # FIXME: normalize_rev can be skipped when called by ourselves rev = self.normalize_rev(rev) or self.get_youngest_rev() + path = self.normalize_path(path) try: return MonotoneNode(self.mtn, rev, path) except AutomateException: @@ -344,7 +347,7 @@ class MonotoneRepository(Repository): Return a canonical representation of path in the repos. We strip trailing slashes except for the root. """ - return path and path.rstrip('/') or '/' + return '/' + path.strip('/') def normalize_rev(self, rev): """