[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[SOLVED] svn: Invalid editor anchoring; at least one of the input paths is not a directory and there was no source entry

From: Katarina WONG <kwong_at_alexandria.cc>
Date: 2004-06-01 15:17:32 CEST

Hello list,

Hoping to help people new to svn branching and mixed revisions, I post the
result of my time spent on the following Subversion message:

svn: Invalid editor anchoring; at least one of the input paths is not a
directory and there was no source entry

This occurred when I tried to switch (svn switch) a single file after
copying (svn copy) a part of my repository to a new private branch.

[kwong][~/ZES/trunk/code/zes]> svn switch
svn+ssh://localhost/zendsave/branch/kat/code/zes/init_zes_db.rb
kwong@localhost's password:
svn: Invalid editor anchoring; at least one of the input paths is not a
directory and there was no source entry

The problem was simply that I was naively assuming that svn would
understand what I meant by specifying a filename instead of a directory
(i.e. switch that file !). The point is that it does not ! The same syntax
with a directory name works as expected; it switches the contents of the
cwd.

So ?

DO NOT TRY TO SWITCH A SINGLE FILE WITHOUT EXPLICITELY STATING THE
"DESTINATION" FILE NAME (most often the same name).

The proper syntax in my case was:

[kwong][~/ZES/trunk/code/zes]> svn switch
svn+ssh://localhost/zendsave/branch/kat/code/zes/init_zes_db.rb
init_zes_db.rb
kwong@localhost's password:
U init_zes_db.rb
Updated to revision 97.

How disapointing to have wasted so much time on this !!!

I may have missed something in the book but I have the feeling that this
would deserve a note somewhere. Also, I could not find any documentation
of this optional [PATH] parameter of the switch subcommand; it is
definitely not optional in these cases.

HTH,

Katarina WONG.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 1 15:53:49 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.