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

Re: import_dir 'current' is a directory.

From: Anthony Ettinger <anthony_at_chovy.com>
Date: Tue, 19 Feb 2008 18:22:31 -0800

On Feb 19, 2008 4:31 PM, Ryan Schmidt <subversion-2008a_at_ryandesign.com> wrote:
> On Feb 19, 2008, at 02:19, Anthony Ettinger wrote:
>
> > I tried several things:
> >
> > $ svn-load-dirs -t 2.3.3 file:///x/svn/todo vendor/wordpress/current
> > /tmp/wordpress/2.3.3/
> > /usr/bin/svn-load-dirs: import_dir 'current' is a directory.
> >
> > All the examples I find say to make "current" version 1.0 then import
> > 1.2 (I've got "current" as 2.3.2 of wordpress, and it won't let me
> > continue).
>
> I can never remember the syntax for svn-load-dirs so I wrote this in
> my local documentation:
>
>
> Importing a new vendor project
>
> export REPO=http://svn.example.com
> svn import ./phpMyAdmin-2.7.0-pl2 $REPO/vendor/pma/current -m
> 'Importing phpMyAdmin 2.7.0-pl2 as current'
> svn copy $REPO/vendor/pma/{current,2.7.0-pl2} -m 'Tagging phpMyAdmin
> 2.7.0-pl2'
>
>
> Updating an existing vendor project
>
> export REPO=http://svn.example.com
> svn-load-dirs -t 2.8.0 $REPO/vendor/pma current ./phpMyAdmin-2.8.0
>
>
>

I figured out that if you run svn-load-dirs with arguments that
reflect true relative paths that exist from your current directory,
you get this error.

simply changing directories, and provide the arguments (that are not
also relative paths ie - tab completion) will fix the error.

Here's an example:

If you're in ./foo and ./foo/current exists, and you run "$
svn-load-dirs file:///x/svn/foo ./current /tmp/version_1.2" from the
"./foo" directory, it will toss this error because the argument
'./current' is a path from your current directory "./foo"

ie: "./foo/current" exists and therefore safely exits because it may
be an unintended path target since it already exists.

Moving up or down a directory and still running svn-load-dirs with the
same arguments removes the warning.

-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name
@pets = Pets.find_all_by_species('dog')
@pets.each do |dog| {
    if dog.name == 'Farley'
        dog.nick = 'Sir Barks-A-lot'
    elsif dog.name == 'Bonita'
        dog.nick = 'Princess Boo'
    else
        dog.nick = 'Doggie?'
    end
}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-20 03:22:53 CET

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.