From 315711ac9f867eed8f697bec3dc14f490d10f262 Mon Sep 17 00:00:00 2001 From: mhagger Date: Wed, 16 Jun 2010 04:29:45 +0000 Subject: [PATCH] Use method DumpfileDelegate._string_for_props(). git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5195 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/dumpfile_delegate.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cvs2svn_lib/dumpfile_delegate.py b/cvs2svn_lib/dumpfile_delegate.py index 203fd834..080e4543 100644 --- a/cvs2svn_lib/dumpfile_delegate.py +++ b/cvs2svn_lib/dumpfile_delegate.py @@ -254,10 +254,9 @@ class DumpfileDelegate(SVNRepositoryDelegate): # treat .cvsignore as a directory property dir_path, basename = path_split(cvs_rev.get_svn_path()) if basename == '.cvsignore': - ignore_contents = ''.join((s + '\n') for s in generate_ignores(data)) - ignore_contents = ('K 10\nsvn:ignore\nV %d\n%s\n' % \ - (len(ignore_contents), ignore_contents)) - ignore_contents += 'PROPS-END\n' + ignore_contents = self._string_for_props({ + 'svn:ignore' : ''.join((s + '\n') for s in generate_ignores(data)) + }) ignore_len = len(ignore_contents) # write headers, then props -- 2.11.4.GIT