From a4b6c76edf16435b8340b4f644ef296f9115c335 Mon Sep 17 00:00:00 2001 From: mhagger Date: Sun, 22 Nov 2009 05:30:21 +0000 Subject: [PATCH] Change the property name for CVS descriptions to "cvs:description". git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@4964 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn-example.options | 4 ++-- cvs2svn_lib/property_setters.py | 2 +- run-tests.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cvs2svn-example.options b/cvs2svn-example.options index e3339edf..29464364 100644 --- a/cvs2svn-example.options +++ b/cvs2svn-example.options @@ -484,8 +484,8 @@ ctx.svn_property_setters.extend([ # being executable: ExecutablePropertySetter(), - # Set the dc:description property on any files that have a CVS - # description: + # Set the cvs:description property to the CVS description of any + # file that has one: DescriptionPropertySetter(), # Uncomment the following line to include the original CVS revision diff --git a/cvs2svn_lib/property_setters.py b/cvs2svn_lib/property_setters.py index 5c198e9d..4bc79090 100644 --- a/cvs2svn_lib/property_setters.py +++ b/cvs2svn_lib/property_setters.py @@ -68,7 +68,7 @@ class ExecutablePropertySetter(SVNPropertySetter): class DescriptionPropertySetter(SVNPropertySetter): """Set the svn:description property based on cvs_rev.cvs_file.description.""" - propname = 'dc:description' + propname = 'cvs:description' def set_properties(self, s_item): if self.propname in s_item.svn_props: diff --git a/run-tests.py b/run-tests.py index 862b5cb6..354b0c26 100755 --- a/run-tests.py +++ b/run-tests.py @@ -3700,7 +3700,7 @@ def many_deletes(): cvs_description = Cvs2SvnPropertiesTestCase( 'main', doc='test handling of CVS file descriptions', - props_to_test=['dc:description'], + props_to_test=['cvs:description'], expected_props=[ ('trunk/proj/default', ['This is an example file description.']), ('trunk/proj/sub1/default', [None]), -- 2.11.4.GIT