The source project of this merge request has been removed.
deb-git-version-gen: Handle switching from non-native to native
When a non-native package is converted to be a native one, we need to ensure that the snapshot version does not contain a debian revision.
For instance, on a package moving from 0.1706.0-0co4 to 0.2020.1 in three commits, the final output changes like this:
from: 0.2020.1~0.1706.0+3+g9c3c6b273f11-0co4
to: 0.2020.1~0.1706.0+0co4+3+g9c3c6b273f11
To be read as "prerelease of 0.2020.1, consisting of 0.1706.0-0co4 plus 3 more commits, the last of which is 9c3c6b273f11".