You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Deepak Bhatia <de...@voxomos.com> on 2013/08/23 14:37:42 UTC

New To SVN

Hello,

I am able to create the repository using

svnadmin create --fs-type fsfs http://demo..../~deepak/svn

But the import of a directory is giving error

-bash-4.2$ svn import -m "New import" /home/deepak/keyword_spotter
http://localhost/~deepak/svn
svn: Repository moved permanently to 'http://demo..../~deepak/svn/'; please
relocate

Regards

Deepak Bhatia
Software Consultant
Voxomos Systems Pvt. Limited
Mobile: 91 9811196957
C56A/27, Sector 62, NOIDA (NCR), UP, India
Skype: toreachdeepak

Re: New To SVN

Posted by Stefan Sperling <st...@elego.de>.
On Fri, Aug 23, 2013 at 06:38:42PM +0530, Deepak Bhatia wrote:
> Hello,
> 
> Ok I created a repository by giving the absolute path to the directory.
> 
> svnadmin create --fs-type fsfs /home/deepak/public_html/svn2
> 
> Then importing a directory is giving the error
> 
> -bash-4.2$ svn import -m "New Import" . http://demo.voxomos.com/~deepak/svn2
> svn: Repository moved permanently to 'http://demo.voxomos.com/~deepak/svn2/';
> please relocate

How did you configure HTTPD for Subversion exactly?

You'll need to add a <Location ...> statement to your httpd
configuration that maps a URL such as http://demo.voxomos.com/svn/
to the on-disk path /home/deepak/public_html/svn2.

Something like this:

 <Location /svn>
   ...
   SVNPath /home/deepak/public_html/svn2
   ...
 </Location>

Then use the URL http://demo.voxomos.com/svn/ to access the repositories.

More details at http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html

Re: New To SVN

Posted by Deepak Bhatia <de...@voxomos.com>.
Hello,

Ok I created a repository by giving the absolute path to the directory.

svnadmin create --fs-type fsfs /home/deepak/public_html/svn2

Then importing a directory is giving the error

-bash-4.2$ svn import -m "New Import" . http://demo.voxomos.com/~deepak/svn2
svn: Repository moved permanently to 'http://demo.voxomos.com/~deepak/svn2/';
please relocate


Deepak Bhatia
Software Consultant
Voxomos Systems Pvt. Limited
Mobile: 91 9811196957
C56A/27, Sector 62, NOIDA (NCR), UP, India
Skype: toreachdeepak


On Fri, Aug 23, 2013 at 6:17 PM, Stefan Sperling <st...@elego.de> wrote:

> On Fri, Aug 23, 2013 at 06:07:42PM +0530, Deepak Bhatia wrote:
> > Hello,
> >
> > I am able to create the repository using
> >
> > svnadmin create --fs-type fsfs http://demo..../~deepak/svn
>
> 'svnadmin create' requires a local path to a directory that
> does not yet exist. It is supposed to be run on the SVN server itself.
> It cannot work over HTTP. You need command line access to the server.
>
> You've created a repository on your client computer in a directory
> which has a name that looks like a URL.
>
> Please see here for details:
> http://svnbook.red-bean.com/en/1.8/svn.reposadmin.maint.html
>
> > But the import of a directory is giving error
> >
> > -bash-4.2$ svn import -m "New import" /home/deepak/keyword_spotter
> > http://localhost/~deepak/svn
> > svn: Repository moved permanently to 'http://demo..../~deepak/svn/';
> please
> > relocate
> >
> > Regards
> >
> > Deepak Bhatia
> > Software Consultant
> > Voxomos Systems Pvt. Limited
> > Mobile: 91 9811196957
> > C56A/27, Sector 62, NOIDA (NCR), UP, India
> > Skype: toreachdeepak
>

Re: New To SVN

Posted by Stefan Sperling <st...@elego.de>.
On Fri, Aug 23, 2013 at 06:07:42PM +0530, Deepak Bhatia wrote:
> Hello,
> 
> I am able to create the repository using
> 
> svnadmin create --fs-type fsfs http://demo..../~deepak/svn

'svnadmin create' requires a local path to a directory that
does not yet exist. It is supposed to be run on the SVN server itself.
It cannot work over HTTP. You need command line access to the server.

You've created a repository on your client computer in a directory
which has a name that looks like a URL.

Please see here for details:
http://svnbook.red-bean.com/en/1.8/svn.reposadmin.maint.html

> But the import of a directory is giving error
> 
> -bash-4.2$ svn import -m "New import" /home/deepak/keyword_spotter
> http://localhost/~deepak/svn
> svn: Repository moved permanently to 'http://demo..../~deepak/svn/'; please
> relocate
> 
> Regards
> 
> Deepak Bhatia
> Software Consultant
> Voxomos Systems Pvt. Limited
> Mobile: 91 9811196957
> C56A/27, Sector 62, NOIDA (NCR), UP, India
> Skype: toreachdeepak