regro / rever

Releaser of Versions
https://regro.github.io/rever-docs/
BSD 3-Clause "New" or "Revised" License
75 stars 34 forks source link

version key entry test #141

Closed scopatz closed 6 years ago

scopatz commented 6 years ago

minor fix to make command run on old rever/ dirs that might be hanging around

scopatz commented 6 years ago

CC @CJ-Wright @justcalamari

CJ-Wright commented 6 years ago

Would it be possible to have a test?

scopatz commented 6 years ago

It is being tested, since this function is hit a lot, esp in test_main. This specificaly handles the default mode where 'version' is present in the history. The case where version is not present is deprecate, and so it is probably not worth testing it excessively, since to do so we would have to reproduce deprecated behavior.

CJ-Wright commented 6 years ago

Ah ok :+1: