dsoprea / PySvn

Lightweight Subversion library for Python.
GNU General Public License v2.0
217 stars 145 forks source link

Add changelist to status entries #162

Open idbrii opened 4 years ago

idbrii commented 4 years ago

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.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.3%) to 78.352% when pulling 197359b3c5f18c497892bf61304a8a14d2d19260 on idbrii:status-changelist into c0878be6bd58f784ae2f107180cbe053f86ecb62 on dsoprea:master.