Ok, this is happening because neutron uses preversioning:
556 if distance == 0: 557 return last_semver 558 import pdb;pdb.set_trace() 559 -> if target_version is not None: 560 return target_version.to_dev(distance) 561 else: 562 return new_version.to_dev(distance)
(Pdb) new_version pbr.version.SemanticVersion(2015.1.0.0rc3) (Pdb) new_version.to_dev(distance) pbr.version.SemanticVersion(2015.1.0.0rc3.dev1)
(Pdb) target_version pbr.version.SemanticVersion(2015.1.0) (Pdb) target_version.to_dev(distance) pbr.version.SemanticVersion(2015.1.0.dev1)
I'm not sure that this is sanely fixable. preversioning is fundamentally broken when the target version is wrong.
Ok, this is happening because neutron uses preversioning:
556 if distance == 0: version. to_dev( distance) to_dev( distance)
557 return last_semver
558 import pdb;pdb.set_trace()
559 -> if target_version is not None:
560 return target_
561 else:
562 return new_version.
(Pdb) new_version SemanticVersion (2015.1. 0.0rc3) to_dev( distance) SemanticVersion (2015.1. 0.0rc3. dev1)
pbr.version.
(Pdb) new_version.
pbr.version.
(Pdb) target_version SemanticVersion (2015.1. 0) version. to_dev( distance) SemanticVersion (2015.1. 0.dev1)
pbr.version.
(Pdb) target_
pbr.version.
I'm not sure that this is sanely fixable. preversioning is fundamentally broken when the target version is wrong.