diff -r 9f288fee8a82 -r 25d8f4623447 scripts/svn_helper.py --- a/scripts/svn_helper.py Tue Jun 10 16:19:59 2008 +0000 +++ b/scripts/svn_helper.py Tue Jun 10 16:23:20 2008 +0000 @@ -46,11 +46,16 @@ PYSVN_FILE_DIR_NODE_KINDS = set([pysvn.node_kind.dir, pysvn.node_kind.file]) +# pysvn Client object initialized lazily the first time getPySvnClient() +# is called. _client = None def getPySvnClient(): """Returns the module-global pysvn Client object (creating one if needed). + + Lazily initializes a global pysvn Client object, returning the same one + once it exists. """ global _client @@ -95,6 +100,10 @@ def useLocalOsSep(path): """Return path with all / characters replaced with os.sep, to be OS-agnostic. + + Args: + path: an SVN path (either working copy path or relative path, but not a + full repository URL) that uses the canonical / separators """ return path.replace('/', os.sep)