def get_info(self, location):
assert not location.rstrip('<STR_LIT:/>').endswith(self.dirname),'<STR_LIT>' % location<EOL>output = call_subprocess(<EOL>[self.cmd, '<STR_LIT:info>', location],<EOL>show_stdout=False,<EOL>extra_environ={'<STR_LIT>': '<STR_LIT:C>'},<EOL>)<EOL>match = _svn_url_re.search(output)<EOL>if not match:<EOL><INDENT>logger.warning(<EOL>'<STR_LIT>',<EOL>display_path(location),<EOL>)<EOL>logger.debug('<STR_LIT>', output)<EOL>return None, None<EOL><DEDENT>url = match.group(<NUM_LIT:1>).strip()<EOL>match = _svn_revision_re.search(output)<EOL>if not match:<EOL><INDENT>logger.warning(<EOL>'<STR_LIT>',<EOL>display_path(location),<EOL>)<EOL>logger.debug('<STR_LIT>', output)<EOL>return url, None<EOL><DEDENT>return url, match.group(<NUM_LIT:1>)<EOL>
Returns (url, revision), where both are strings