diff options
Diffstat (limited to 'Tools/Scripts/webkitpy/common/checkout/scm/svn.py')
-rw-r--r-- | Tools/Scripts/webkitpy/common/checkout/scm/svn.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Tools/Scripts/webkitpy/common/checkout/scm/svn.py b/Tools/Scripts/webkitpy/common/checkout/scm/svn.py index edeee30ae..af03f8d70 100644 --- a/Tools/Scripts/webkitpy/common/checkout/scm/svn.py +++ b/Tools/Scripts/webkitpy/common/checkout/scm/svn.py @@ -86,11 +86,10 @@ class SVN(SCM, SVNRepository): def in_working_directory(path): return os.path.isdir(os.path.join(path, '.svn')) - @classmethod - def find_uuid(cls, path): - if not cls.in_working_directory(path): + def find_uuid(self, path): + if not self.in_working_directory(path): return None - return cls.value_from_svn_info(path, 'Repository UUID') + return self.value_from_svn_info(path, 'Repository UUID') @classmethod def value_from_svn_info(cls, path, field_name): @@ -102,19 +101,18 @@ class SVN(SCM, SVNRepository): raise ScriptError(script_args=svn_info_args, message='svn info did not contain a %s.' % field_name) return match.group('value') - @staticmethod - def find_checkout_root(path): - uuid = SVN.find_uuid(path) + def find_checkout_root(self, path): + uuid = self.find_uuid(path) # If |path| is not in a working directory, we're supposed to return |path|. if not uuid: return path # Search up the directory hierarchy until we find a different UUID. last_path = None while True: - if uuid != SVN.find_uuid(path): + if uuid != self.find_uuid(path): return last_path last_path = path - (path, last_component) = os.path.split(path) + (path, last_component) = self._filesystem.split(path) if last_path == path: return None |