Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » moving a tag - error "A path under version control is needed for this operation"
moving a tag - error "A path under version control is needed for this operation" [message #15818] Mon, 07 April 2008 09:47 Go to next message
Edoardo Comar is currently offline Edoardo ComarFriend
Messages: 102
Registered: July 2009
Senior Member
I need to understand what went wrong with my trying to move a tag.

Our repo has the usual conventional structure
<root>/trunk
<root>/tags
<root>/branches

Before a commit I wanted to tag the then current repository (not my
working copy!) - so I selected trunk in the SVN Repository explorer and
created a new tag :
<root>/tags/fromTrunk/20080404foobaretc

Later I tried to MOVE that tag (as we reserve the 'fromTrunk' space for
autogen tags during builds) to
<root>/tags/edoardo/20080404foobaretc

this fails withe following error:

!ENTRY org.eclipse.team.svn.core.svnnature 4 0 2008-04-07 09:32:54.707
!MESSAGE SVN: '0x0000000b: Move' operation finished with error
!SUBENTRY 1 org.eclipse.team.svn.core.svnnature 4 0 2008-04-07 09:32:54.707
!MESSAGE Some of selected resources were not moved.
!STACK 0
org.eclipse.team.svn.core.connector.SVNConnectorException: svn: A path
under version control is needed for this operation
at
org.polarion.team.svn.connector.svnkit.SVNKitConnector.handl eClientException(SVNKitConnector.java:1245)
at
org.polarion.team.svn.connector.svnkit.SVNKitConnector.move( SVNKitConnector.java:991)
at
org.eclipse.team.svn.core.extension.factory.ThreadNameModifi er.move(ThreadNameModifier.java:395)
at
org.eclipse.team.svn.core.operation.remote.MoveResourcesOper ation.processEntry(MoveResourcesOperation.java:78)
at
org.eclipse.team.svn.core.operation.remote.MoveResourcesOper ation$2.run(MoveResourcesOperation.java:60)
at
org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doS ubTask(ProgressMonitorUtility.java:117)
at
org.eclipse.team.svn.core.operation.AbstractActionOperation. protectStep(AbstractActionOperation.java:145)
at
org.eclipse.team.svn.core.operation.AbstractActionOperation. protectStep(AbstractActionOperation.java:140)
at
org.eclipse.team.svn.core.operation.remote.MoveResourcesOper ation.runImpl(MoveResourcesOperation.java:58)
at
org.eclipse.team.svn.core.operation.AbstractActionOperation. run(AbstractActionOperation.java:76)
at
org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doT ask(ProgressMonitorUtility.java:103)
at
org.eclipse.team.svn.core.operation.CompositeOperation.runIm pl(CompositeOperation.java:94)
at
org.eclipse.team.svn.core.operation.AbstractActionOperation. run(AbstractActionOperation.java:76)
at
org.eclipse.team.svn.core.operation.LoggedOperation.run(Logg edOperation.java:37)
at
org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doT ask(ProgressMonitorUtility.java:103)
at
org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doT askExternal(ProgressMonitorUtility.java:89)
at
org.eclipse.team.svn.ui.utility.DefaultCancellableOperationW rapper.run(DefaultCancellableOperationWrapper.java:55)
at
org.eclipse.team.svn.ui.utility.SVNTeamOperationWrapper.run( SVNTeamOperationWrapper.java:35)
at
org.eclipse.team.internal.ui.actions.JobRunnableContext.run( JobRunnableContext.java:144)
at
org.eclipse.team.internal.ui.actions.JobRunnableContext$Reso urceJob.runInWorkspace(JobRunnableContext.java:72)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.tigris.subversion.javahl.ClientExceptionEx: svn: A path
under version control is needed for this operation
at
org.tigris.subversion.javahl.JavaHLObjectFactory.createExcep tion(JavaHLObjectFactory.java:196)
at
org.tigris.subversion.javahl.JavaHLObjectFactory.throwExcept ion(JavaHLObjectFactory.java:167)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(S VNClientImpl.java:1675)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.copyOrMove(SVNCl ientImpl.java:869)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.move(SVNClientIm pl.java:812)
at
org.polarion.team.svn.connector.svnkit.SVNKitConnector.move( SVNKitConnector.java:988)
... 20 more
Re: moving a tag - error "A path under version control is needed for this operation" [message #15838 is a reply to message #15818] Mon, 07 April 2008 14:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander.gurov.polarion.org

Hello Edoardo,


It looks like the issue relates to development version of SVN Kit 1.2.0. I
checked described situation additionally with SVN Kit 1.1.6 and JavaHL
1.5.0 and found no problem with these connectors. So, I reported the
problem to SVN Kit authors. As workaround in order to work with SVN 1.5.0
you can use native JavaHL 1.5.0 beta1-based connector.
Re: moving a tag - error "A path under version control is needed for this operation" [message #15857 is a reply to message #15838] Mon, 07 April 2008 14:47 Go to previous messageGo to next message
Edoardo Comar is currently offline Edoardo ComarFriend
Messages: 102
Registered: July 2009
Senior Member
thanks Alexander,
I think the HL connector requires Windows so that's unusable for me.

However I switched connector in my preferences from SVNKit 1.2.0 to
1.1.4 and I could move the tag succesfully :-)


Alexander Gurov wrote:
> Hello Edoardo,
>
>
> It looks like the issue relates to development version of SVN Kit 1.2.0.
> I checked described situation additionally with SVN Kit 1.1.6 and JavaHL
> 1.5.0 and found no problem with these connectors. So, I reported the
> problem to SVN Kit authors. As workaround in order to work with SVN
> 1.5.0 you can use native JavaHL 1.5.0 beta1-based connector.
>
Re: moving a tag - error "A path under version control is needed for this operation" [message #15872 is a reply to message #15857] Mon, 07 April 2008 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander.gurov.polarion.org

> I think the HL connector requires Windows so that's unusable for me.
No. It will work on Unix/Mac OS X also if you install required native
binaries and add path to these libraries into LD_LIBRARY_PATH. (I simply
placed required binaries into /usr/lib).
Re: moving a tag - error "A path under version control is needed for this operation" [message #15889 is a reply to message #15872] Mon, 07 April 2008 15:52 Go to previous messageGo to next message
Edoardo Comar is currently offline Edoardo ComarFriend
Messages: 102
Registered: July 2009
Senior Member
I'll have to look into that then as the 1.14 kit is telling me I cannot
synchronize my workspace any more!!!

Get all resources operation failed.
svn: This client is too old to work with working copy
'/mnt/sda2/home/ecomar/devel/ws/ws-tools-explorer/com.ibm.x. y.z.f.tests/src/com/ibm/x/y/z';
please get a newer Subversion client


Alexander Gurov wrote:
>> I think the HL connector requires Windows so that's unusable for me.
> No. It will work on Unix/Mac OS X also if you install required native
> binaries and add path to these libraries into LD_LIBRARY_PATH. (I simply
> placed required binaries into /usr/lib).
>
Re: moving a tag - error "A path under version control is needed for this operation" [message #15907 is a reply to message #15889] Mon, 07 April 2008 16:04 Go to previous message
Eclipse UserFriend
Originally posted by: alexander.gurov.polarion.org

Edoardo Comar wrote:

> I'll have to look into that then as the 1.14 kit is telling me I cannot
> synchronize my workspace any more!!!
Yes, because SVN 1.5 working copy format is not compatible with SVN 1.4
one.
You have only two options on how to avoid the problem:
1) Use Native JavaHL 1.5.0 or SVN Kit 1.2.0 connector
2) Downgrade working copy to SVN 1.4 format by:
- recheckouting projects
- applying special downgrade script (AFAIK it is placed somewhere on
tigris.org)

If you have SVN server of version 1.5, I think the best way is to use
native JavaHL 1.5.0 or SVN Kit 1.2.0 connectors.

P.S.
Because the issue related to SVN Kit 1.2.0 is already reported to SVN Kit
team, I hope it will not take too much time to be fixed.
Previous Topic:Subversive causes plugin-problems
Next Topic:Corrupted projects?
Goto Forum:
  


Current Time: Thu Mar 28 14:09:13 GMT 2024

Powered by FUDForum. Page generated in 0.02711 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top