Support supports_parent_diffs in SVNRepositoryInfo
A change a while back (ad7dfc5) removed the `supports_parent_diffs`
parameter from the `SVNRepositoryInfo` constructor, causing an
unexpected keyword argument error when using `rbt post` with git-svn.
This patch fixes that regression.
Testing Done:
Ran unit tests.
Reviewed at
@@ -936,7 +936,8 @@ class SVNRepositoryInfo(RepositoryInfo):
UUID of the Subversion repository.
"""
- def __init__(self, path, base_path, uuid, repository_id=None):
+ def __init__(self, path, base_path, uuid, supports_parent_diffs=False,
+ repository_id=None):
"""Initialize the repository information.
Args:
@@ -949,11 +950,15 @@ class SVNRepositoryInfo(RepositoryInfo):
uuid (unicode):
UUID of the Subversion repository.
+ supports_parent_diffs (bool, optional):
+ Whether or not the repository supports parent diffs.
+
repository_id (int, optional):
ID of the repository in the API. This is used primarily for
testing purposes, and is not guaranteed to be set.
"""
- super(SVNRepositoryInfo, self).__init__(path, base_path)
+ super(SVNRepositoryInfo, self).__init__(
+ path, base_path, supports_parent_diffs=supports_parent_diffs)
self.uuid = uuid
self.repository_id = repository_id
