Made CVSRevision.cvs_path and svn_path into properties.
commit6caadeba8b393982c48790a49ae878046a8d60e6
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 6 May 2006 22:41:49 +0000 (6 22:41 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 6 May 2006 22:41:49 +0000 (6 22:41 +0000)
treec628818704affb11b4aa4e9f1b58f4ea2e972919
parent12b29a44c5fa1719680f475ac6cb6b6aa206f70c
Made CVSRevision.cvs_path and svn_path into properties.

* cvs2svn_lib/cvs_revision.py (CVSRevisionID): Made into new-style
  class.

  (CVSRevision.cvs_path, CVSRevision.svn_path): Converted both fields
  into properties, computed when they are read.  This eliminates the
  need to check whether a context is known at instance initiation
  time.

  (CVSRevision.get_cvs_path, CVSRevision.get_svn_path): New read
  methods (accessors for new properties).

  (CVSRevision.__init__): Don't initialize cvs_path and svn_path.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@1982 be7e6eca-30d4-0310-a8e5-ac0d63af7087
cvs2svn_lib/cvs_revision.py