Use as a default option the working copy root for determining the `get_last_changed_revision`
@@ -244,7 +244,10 @@ class SVN(SCMBase):
def get_repo_root(self):
return self.run("info --show-item wc-root").strip()
- def get_last_changed_revision(self):
+ def get_last_changed_revision(self, use_wc_root=True):
+ if use_wc_root:
+ return self.run("info {root} --show-item last-changed-revision".format(self.get_repo_root()).strip()
+ else:
return self.run("info --show-item last-changed-revision").strip()
def get_branch(self):
