Commit 6e9b5f8c authored by Philip Thiem's avatar Philip Thiem

If using a command, we can query the working copy version directly.

--HG--
extra : rebase_source : 0990530647692240d7b7126df1e1cdd5ae463ebb
parent a40c11b0
......@@ -277,6 +277,8 @@ class SVNEntriesCMD(SVNEntries):
"Get repository URL"
return self.urlre.search(self.get_dir_data()[0]).group(1)
def __get_cached_revision(self):
return self.revision
def parse_revision(self):
_, data = _run_command(['svnversion', self.path])
......@@ -285,11 +287,12 @@ class SVNEntriesCMD(SVNEntries):
log.warn('Parsed!')
try:
#No max needed this command summarizes working copy since 1.0
return int(parsed.group(2))
self.revision = int(parsed.group(2))
self.parse_revision = self.__get_cached_revision
return self.revision
except ValueError:
#This should only happen if the revision is WAY too big.
pass
log.warn(repr(data))
return 0
def get_undeleted_records(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment