[
http://jira.codehaus.org/browse/SCM-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110500
]
Vadim Strizhevsky commented on SCM-262:
---------------------------------------
In my setup SVN repository is multiproject setup and tags/ directory can only
be created in. It can't be modified.
I'm unable to use "svn release:prepare" due to it trying to do "svn copy .
tag_url". I've made a patch that does "svn copy trunk_rul tag_url" and that
makes it work fine. I think this is the right approach in general and is also
more efficient from SVN perspective. Is there any chance this issue will be
addressed in next release?
Index:
src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java
===================================================================
---
src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java
(revision 586574)
+++
src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java
(working copy)
@@ -157,7 +157,8 @@
cl.createArgument().setValue( messageFile.getAbsolutePath() );
- cl.createArgument().setValue( "." );
+ String projectRoot =
SvnTagBranchUtils.getProjectRoot(repository.getUrl());
+ cl.createArgument().setValue( projectRoot + "/trunk" );
// Note: this currently assumes you have the tag base checked out too
String tagUrl = SvnTagBranchUtils.resolveTagUrl( repository, new ScmTag
( tag ) );
> scm:tag for subversion tagging from local version of code, not directly from
> repository
> ---------------------------------------------------------------------------------------
>
> Key: SCM-262
> URL: http://jira.codehaus.org/browse/SCM-262
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-scm-provider-svn
> Reporter: Stephan Heilner
> Fix For: future
>
>
> In theory, you shouldn't tag or branch from a local and potentially different
> version of the code. From what I can tell, the scm:tag imports your existing
> code into a new tag. With subversion, tagging is very lightweight if you do
> a 'svn copy trunk_url tag_url'. The way it currently works make sense for
> other repositories such as CVS but not for subversion.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira