from fileids import generate_file_id
from repository import (SvnRepository, SVN_PROP_BZR_MERGE, SVN_PROP_SVK_MERGE,
- SVN_PROP_BZR_REVPROP_PREFIX, SvnRepositoryFormat)
+ SVN_PROP_BZR_PREFIX, SVN_PROP_BZR_REVPROP_PREFIX,
+ SvnRepositoryFormat)
from tree import apply_txdelta_handler
pass
elif name.startswith(svn.core.SVN_PROP_WC_PREFIX):
pass
- else:
+ elif (name.startswith(svn.core.SVN_PROP_PREFIX) or
+ name.startswith(SVN_PROP_BZR_PREFIX)):
mutter('unsupported file property %r' % name)
def change_file_prop(self, id, name, value, pool):
pass
elif name.startswith(svn.core.SVN_PROP_WC_PREFIX):
pass
- else:
+ elif (name.startswith(svn.core.SVN_PROP_PREFIX) or
+ name.startswith(SVN_PROP_BZR_PREFIX)):
mutter('unsupported file property %r' % name)
def add_file(self, path, parent_id, copyfrom_path, copyfrom_revnum, baton):
from tree import SvnRevisionTree
MAPPING_VERSION = 2
+SVN_PROP_BZR_PREFIX = 'bzr:'
REVISION_ID_PREFIX = "svn-v%d:" % MAPPING_VERSION
SVN_PROP_BZR_MERGE = 'bzr:merge'
SVN_PROP_SVK_MERGE = 'svk:merge'
def change_dir_prop(self, id, name, value, pool):
from repository import (SVN_PROP_BZR_MERGE, SVN_PROP_SVK_MERGE,
- SVN_PROP_BZR_REVPROP_PREFIX, SVN_PROP_BZR_FILEIDS)
+ SVN_PROP_BZR_PREFIX, SVN_PROP_BZR_REVPROP_PREFIX,
+ SVN_PROP_BZR_FILEIDS)
if name == svn.core.SVN_PROP_ENTRY_COMMITTED_REV:
self.dir_revnum[id] = int(value)
pass
elif name.startswith(SVN_PROP_BZR_REVPROP_PREFIX):
pass
- else:
+ elif (name.startswith(svn.core.SVN_PROP_PREFIX) or
+ name.startswith(SVN_PROP_BZR_PREFIX)):
mutter('unsupported dir property %r' % name)
def change_file_prop(self, id, name, value, pool):
+ from repository import SVN_PROP_BZR_PREFIX
+
if name == svn.core.SVN_PROP_EXECUTABLE:
self.is_executable = (value != None)
elif name == svn.core.SVN_PROP_SPECIAL:
pass
elif name.startswith(svn.core.SVN_PROP_WC_PREFIX):
pass
- else:
+ elif (name.startswith(svn.core.SVN_PROP_PREFIX) or
+ name.startswith(SVN_PROP_BZR_PREFIX)):
mutter('unsupported file property %r' % name)
def add_file(self, path, parent_id, copyfrom_path, copyfrom_revnum, baton):