You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benoit Decherf <de...@yahoo-inc.com> on 2008/09/23 11:21:15 UTC

scm:branch should fail if branch already exists.

Hi,

When executing mvn scm:branch with an existing branch, the execution 
success without any warnings:
-------------------------------------------------------------
[INFO] [scm:branch]
[INFO] Final Branch Name: 'test1'
[INFO] Executing: /bin/sh -c cd /home/decherfb/tmp/testMavenComponentA1 
&& cvs -z3 -f -q tag -b -F -c test1
[INFO] Working directory: /home/decherfb/tmp/testMavenComponentA1
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 29 seconds
[INFO] Finished at: Tue Sep 23 11:17:04 CEST 2008
[INFO] Final Memory: 7M/15M
[INFO] 
------------------------------------------------------------------------
---------------------------------------------------------------

This is not correct. We should have a way to detect that the branch 
wasn't created. The execution of the cvs command give:
-------------------------------------------------------------------
[decherfb@rogue testMavenComponentA1]$ cvs -z3 -f -q tag -b -F -c test1
cvs tag: .cvsignore: Not moving branch tag `test1' from 1.1 to 1.1.0.8.
cvs tag: pom.xml: Not moving branch tag `test1' from 1.22 to 1.22.0.4.
cvs tag: testfile: Not moving branch tag `test1' from 1.1 to 1.1.0.8.
cvs tag: src/main/java/com/kelkoo/test/App.java: Not moving branch tag 
`test1' from 1.4 to 1.4.0.8.
cvs tag: src/test/java/com/kelkoo/test/AppTest.java: Not moving branch 
tag `test1' from 1.1 to 1.1.0.8.
---------------------------------------------------------------------

The behaviour is correct using svn.

Benoit

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: scm:branch should fail if branch already exists.

Posted by Brett Porter <br...@gmail.com>.
I suggest creating an issue in the SCM plugin regarding this also.

Thanks,
Brett

2008/9/23 Benoit Decherf <de...@yahoo-inc.com>:
> Hi,
>
> When executing mvn scm:branch with an existing branch, the execution success
> without any warnings:
> -------------------------------------------------------------
> [INFO] [scm:branch]
> [INFO] Final Branch Name: 'test1'
> [INFO] Executing: /bin/sh -c cd /home/decherfb/tmp/testMavenComponentA1 &&
> cvs -z3 -f -q tag -b -F -c test1
> [INFO] Working directory: /home/decherfb/tmp/testMavenComponentA1
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 29 seconds
> [INFO] Finished at: Tue Sep 23 11:17:04 CEST 2008
> [INFO] Final Memory: 7M/15M
> [INFO]
> ------------------------------------------------------------------------
> ---------------------------------------------------------------
>
> This is not correct. We should have a way to detect that the branch wasn't
> created. The execution of the cvs command give:
> -------------------------------------------------------------------
> [decherfb@rogue testMavenComponentA1]$ cvs -z3 -f -q tag -b -F -c test1
> cvs tag: .cvsignore: Not moving branch tag `test1' from 1.1 to 1.1.0.8.
> cvs tag: pom.xml: Not moving branch tag `test1' from 1.22 to 1.22.0.4.
> cvs tag: testfile: Not moving branch tag `test1' from 1.1 to 1.1.0.8.
> cvs tag: src/main/java/com/kelkoo/test/App.java: Not moving branch tag
> `test1' from 1.4 to 1.4.0.8.
> cvs tag: src/test/java/com/kelkoo/test/AppTest.java: Not moving branch tag
> `test1' from 1.1 to 1.1.0.8.
> ---------------------------------------------------------------------
>
> The behaviour is correct using svn.
>
> Benoit
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org