google-code-export / svnrevisionlabeller

Automatically exported from code.google.com/p/svnrevisionlabeller
1 stars 1 forks source link

A triggered build following a force build does not reset the rebuild property to zero #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the configuration:
<labeller type="svnRevisionLabeller">
    <build>-1</build>
    <executable>svn.exe</executable>
    <incrementOnFailure>False</incrementOnFailure>
    <major>1</major>
    <minor>0</minor>
    <pattern>{major}.{minor}.{revision}.{rebuild}</pattern>
    <resetBuildAfterVersionChange>True</resetBuildAfterVersionChange>
    <url>http://<svnServerHostName>/svn/<RepositoryName>/trunk</url>
  </labeller>

2. Force a build. This sets the label to 1.0.<RepositoryVersion>.1.
3. Trigger a build through a repository change.

What is the expected output? What do you see instead?
The trigger at step 3 should change the label to
1.0.<NewRepositoryVersion>.0. Instead, it sets to 1.0.<NewRepositoryVersion>.1.

What version of the product are you using? On what operating system?
2.0.0.20990, with CC.Net 1.4.4.75, on XP Pro SP3.

Original issue reported on code.google.com by lyndsayp on 12 Jun 2009 at 7:48

GoogleCodeExporter commented 9 years ago
I have fixed this issue with the attached patch (apply against trunk).

Original comment by pablo.r...@gmail.com on 12 Dec 2009 at 5:17

Attachments:

GoogleCodeExporter commented 9 years ago
One last minute fix missing from previous patch. ;)

Original comment by pablo.r...@gmail.com on 12 Dec 2009 at 5:30

Attachments: