From 78ebcca78f8bb4bb5dcd80e1003d72fa82442dd2 Mon Sep 17 00:00:00 2001 From: mhagger Date: Sat, 12 Jun 2010 09:37:16 +0000 Subject: [PATCH] Add field CVSFile.properties, a place to store file-specific properties. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5143 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/cvs_path.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cvs2svn_lib/cvs_path.py b/cvs2svn_lib/cvs_path.py index ad4916b5..b42ba304 100644 --- a/cvs2svn_lib/cvs_path.py +++ b/cvs2svn_lib/cvs_path.py @@ -270,6 +270,9 @@ class CVSFile(CVSPath): description -- (string or None) the file description as read from the RCS file. + properties -- (dict) file properties that are preserved across + history. + PARENT_DIRECTORY might contain an 'Attic' component if it should be retained in the SVN repository; i.e., if the same filename exists out of Attic and the --retain-conflicting-attic-files option was specified. @@ -281,7 +284,8 @@ class CVSFile(CVSPath): 'executable', 'file_size', 'mode', - 'description' + 'description', + 'properties', ] def __init__( @@ -297,6 +301,7 @@ class CVSFile(CVSPath): self.file_size = file_size self.mode = mode self.description = description + self.properties = {} CVSPath.__init__(self, id, project, parent_directory, basename) def _calculate_filename(self): @@ -315,14 +320,14 @@ class CVSFile(CVSPath): return ( CVSPath.__getstate__(self), self._in_attic, self.executable, self.file_size, self.mode, - self.description + self.description, self.properties, ) def __setstate__(self, state): ( cvs_path_state, self._in_attic, self.executable, self.file_size, self.mode, - self.description + self.description, self.properties, ) = state CVSPath.__setstate__(self, cvs_path_state) -- 2.11.4.GIT