Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def formatPaths(self, paths):
- newPaths = list()
- for path in paths:
- path = path[len(self.basePath):]
- path = path.replace("/", "\")
- newPaths.append(path)
- return newPaths
- baselen = len(self.basePath)
- return (path[baselen:].replace("/", "\") for path in paths)
- from anyvc import Subversion
- vc = Subversion('/trunk')
- modified = [f.relpath for f in vc.list() if f.state != 'clean']
- for f in modified:
- print f.relpath # the relative path of the file to the source root
- baselen = len(self.basePath)
- for path in paths:
- path = path[baselen:].replace("/", "\")
- newPaths.append(path)
- return newPaths
- baselen = len(self.basePath)
- return (path[baselen:].replace("/", "\") for path in paths)
Add Comment
Please, Sign In to add comment