From c4f439c8ef6b287d5c4304f19456e7dd7b10dc3d Mon Sep 17 00:00:00 2001 From: mhagger Date: Sun, 22 Nov 2009 05:30:33 +0000 Subject: [PATCH] Allow the property name for CVS descriptions to be chosen by the user. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@4965 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn-example.options | 2 +- cvs2svn_lib/property_setters.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cvs2svn-example.options b/cvs2svn-example.options index 29464364..ef837c3e 100644 --- a/cvs2svn-example.options +++ b/cvs2svn-example.options @@ -486,7 +486,7 @@ ctx.svn_property_setters.extend([ # Set the cvs:description property to the CVS description of any # file that has one: - DescriptionPropertySetter(), + DescriptionPropertySetter(propname='cvs:description'), # Uncomment the following line to include the original CVS revision # numbers as file properties in the SVN archive: diff --git a/cvs2svn_lib/property_setters.py b/cvs2svn_lib/property_setters.py index 4bc79090..6369742e 100644 --- a/cvs2svn_lib/property_setters.py +++ b/cvs2svn_lib/property_setters.py @@ -68,7 +68,8 @@ class ExecutablePropertySetter(SVNPropertySetter): class DescriptionPropertySetter(SVNPropertySetter): """Set the svn:description property based on cvs_rev.cvs_file.description.""" - propname = 'cvs:description' + def __init__(self, propname='cvs:description'): + self.propname = propname def set_properties(self, s_item): if self.propname in s_item.svn_props: -- 2.11.4.GIT