# get the message out any way we can
from warnings import warn as warning
-__version__ = '0.3.1'
+__version__ = '0.4.0'
required_bzr_version = (0,15)
def check_bzrlib_version(desired):
:param branch_path: Relative path inside the repository this
branch is located at.
"""
- super(Branch, self).__init__()
+ super(SvnBranch, self).__init__()
self.repository = repository
assert isinstance(self.repository, SvnRepository)
self.branch_path = branch_path
def set_revision_history(self, rev_history):
raise NotImplementedError(self.set_revision_history)
+ def set_last_revision_info(self, revno, revid):
+ pass
+
def set_push_location(self, location):
raise NotImplementedError(self.set_push_location)
def add_file_to_inv(relpath, id, revid, parent_id):
"""Add a file to the inventory."""
if os.path.islink(self.abspath(relpath)):
- file = InventoryLink(id, os.path.basename(relpath), parent_id)
+ file = InventoryLink(str(id), os.path.basename(relpath), str(parent_id))
file.revision = revid
file.symlink_target = os.readlink(self.abspath(relpath))
file.text_sha1 = None
file.executable = False
inv.add(file)
else:
- file = InventoryFile(id, os.path.basename(relpath), parent_id)
+ file = InventoryFile(str(id), os.path.basename(relpath), str(parent_id))
file.revision = revid
try:
data = fingerprint_file(open(self.abspath(relpath)))
inv.add_path("", 'directory', ROOT_ID)
inv.revision_id = revid
else:
- inventry = InventoryDirectory(id, os.path.basename(relpath), parent_id)
+ inventry = InventoryDirectory(str(id), os.path.basename(relpath), str(parent_id))
inventry.revision = revid
inv.add(inventry)