Fix files in changelists don't appear in status(). Add changelist
attribute to status() result.
Since svn status includes files in changelists, it makes sense for
status() to include them as well. Add a field to _STATUS_ENTRY for
changelist. Files without a changelist have changelist=None and
otherwise changelist is the name of the changelist.
Rework the status test to use assertIsNotNone and assertEqual to give
better error messages. Invalid filenames produce KeyError and are not
None, so checking for None wasn't really preventing errors.
Coverage increased (+0.3%) to 78.352% when pulling 197359b3c5f18c497892bf61304a8a14d2d19260 on idbrii:status-changelist into c0878be6bd58f784ae2f107180cbe053f86ecb62 on dsoprea:master.
Fix files in changelists don't appear in status(). Add changelist attribute to status() result.
Since
svn status
includes files in changelists, it makes sense for status() to include them as well. Add a field to _STATUS_ENTRY for changelist. Files without a changelist have changelist=None and otherwise changelist is the name of the changelist.Rework the status test to use assertIsNotNone and assertEqual to give better error messages. Invalid filenames produce KeyError and are not None, so checking for None wasn't really preventing errors.