-
Committer:
John Wright
-
Date:
2010-03-14 09:15:58 UTC
-
Revision ID:
git-v1:8f4604b73eed1cedceb5c65bbd1bf82314137767
changelog: Use debian_support.Version directly
When implementing the native Python Version class, I didn't notice that
changelog subclasses debian_support.Version and adds a bunch of
properties to it. I had already implemented most of those in
debian_support.BaseVersion, but I hadn't made the properties mutable.
This commit makes them mutable, makes the debian_version property
equivalent to debian_revision, and makes changelog.Version a subclass
without any custom methods.
Now we pass the full test suite again. :) Eventually, the version tests
in test_changelog.py should probably be split out into their own module
and test debian_support.AptPkgVersion and debian_support.NativeVersion
explicitly. But I'll leave that for later.