@classmethod<EOL><INDENT>def get_revision(cls, location):<DEDENT>
<EOL>revision = <NUM_LIT:0><EOL>for base, dirs, files in os.walk(location):<EOL><INDENT>if cls.dirname not in dirs:<EOL><INDENT>dirs[:] = []<EOL>continue    <EOL><DEDENT>dirs.remove(cls.dirname)<EOL>entries_fn = os.path.join(base, cls.dirname, '<STR_LIT>')<EOL>if not os.path.exists(entries_fn):<EOL><INDENT>continue<EOL><DEDENT>dirurl, localrev = cls._get_svn_url_rev(base)<EOL>if base == location:<EOL><INDENT>base = dirurl + '<STR_LIT:/>'   <EOL><DEDENT>elif not dirurl or not dirurl.startswith(base):<EOL><INDENT>dirs[:] = []<EOL>continue    <EOL><DEDENT>revision = max(revision, localrev)<EOL><DEDENT>return revision<EOL>
Return the maximum revision for all files under a given location