Created
May 8, 2009 03:57
-
-
Save yannk/108607 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur RBTools-0.2beta1/scripts/post-review RBTools-0.2beta1.new/scripts/pos | |
t-review | |
--- RBTools-0.2beta1/scripts/post-review 2009-03-28 22:40:09.000000000 -0 | |
700 | |
+++ RBTools-0.2beta1.new/scripts/post-review 2009-05-07 20:53:29.000000000 -0 | |
700 | |
@@ -148,8 +148,9 @@ | |
A representation of a SVN source code repository. This version knows how to | |
find a matching repository on the server even if the URLs differ. | |
""" | |
- def __init__(self, path, base_path, uuid): | |
- RepositoryInfo.__init__(self, path, base_path) | |
+ def __init__(self, path=None, base_path=None, uuid=None, supports_changeset | |
s=False, | |
+ supports_parent_diffs=False): | |
+ RepositoryInfo.__init__(self, path, base_path, supports_changesets, sup | |
ports_parent_diffs) | |
self.uuid = uuid | |
def find_server_repository_info(self, server): | |
@@ -1661,9 +1662,13 @@ | |
if m: | |
base_path = m.group(1)[len(path):] or "/" | |
+ | |
+ m = re.search(r'^Repository UUID: (.+)$', data, re.M) | |
+ uuid = m.group(1) | |
self.type = "svn" | |
- return RepositoryInfo(path=path, base_path=base_path, | |
- supports_parent_diffs=True) | |
+ | |
+ return SvnRepositoryInfo(path=path, base_path=base_path, | |
+ uuid=uuid, supports_parent_diffs=True) | |
else: | |
# Versions of git-svn before 1.5.4 don't (appear to) support | |
# 'git svn info'. If we fail because of an older git install, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment