You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Chris Ajello <ch...@redmccombsmedia.com> on 2006/04/04 21:01:17 UTC

Directed add without checkout

I've got a web script that generates pages for me, and I want to store those
pages in my SVN.  Is there any way to add/commit those files with a script?

 

I know that I can do the following: 

 

1)       first checkout the destination that I’m submitting new files to.

2)       Add the new files to that checked out folder

3)       Commit the new files to the repository

 

The only problem with this is that it’s grossly inefficient.  I would like
to be able to add files directly to a folder in the repository.  Can anyone
help me?

 

Thanks!

-Chris


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006
 

RE: Directed add without checkout

Posted by Ruslan Sivak <rs...@istandfor.com>.
It should be possible, there are instructions in the svn book, and also a
nice tutorial on permissions here:
http://pixel.global-banlist.de./svn/permissions

I am having problems setting up the apache part though, and have posted that
a few minutes ago in a separate thread.  Hopefuly somebody will get back to
me on that. 

Russ

-----Original Message-----
From: Chris Ajello [mailto:chris.ajello@redmccombsmedia.com] 
Sent: Tuesday, April 04, 2006 7:17 PM
To: 'Ryan Schmidt'; 'Garrett Rooney'
Cc: 'Subversion List'
Subject: RE: Directed add without checkout



> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2006Q1@ryandesign.com]
> 
> On Apr 5, 2006, at 00:14, Garrett Rooney wrote:
> 
> > On 4/4/06, Chris Ajello <ch...@redmccombsmedia.com> wrote:
> >
> >> The only problem with this is that it's grossly inefficient.  I
> >> would like
> >> to be able to add files directly to a folder in the repository.
> >> Can anyone
> >> help me?
> >
> > The command line client does not provide a command to do it, but it
> > could be implemented relatively easily via the RA layer, i.e. in a
> > script using the perl, python, or ruby bindings.  For a bit of example
> > code that does a similar thing in C, see the tools/examples/svnput.c
> > program in the subversion source tree.
> 
> Another option, if you're serving the repository with Apache, would
> be to mount the repository as a WebDAV volume and just write the file
> to the appropriate place. You wouldn't get to write a commit message,
> but it should just about work, and is of course very easy to do, what
> with not having to write any code to do it.
> 

Is it possible to serve with Apache/webdav as well as svnserve at the same
time? How would I do that, or is there a good direction to point me in?

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Directed add without checkout

Posted by Chris Ajello <ch...@redmccombsmedia.com>.

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2006Q1@ryandesign.com]
> 
> On Apr 5, 2006, at 00:14, Garrett Rooney wrote:
> 
> > On 4/4/06, Chris Ajello <ch...@redmccombsmedia.com> wrote:
> >
> >> The only problem with this is that it's grossly inefficient.  I
> >> would like
> >> to be able to add files directly to a folder in the repository.
> >> Can anyone
> >> help me?
> >
> > The command line client does not provide a command to do it, but it
> > could be implemented relatively easily via the RA layer, i.e. in a
> > script using the perl, python, or ruby bindings.  For a bit of example
> > code that does a similar thing in C, see the tools/examples/svnput.c
> > program in the subversion source tree.
> 
> Another option, if you're serving the repository with Apache, would
> be to mount the repository as a WebDAV volume and just write the file
> to the appropriate place. You wouldn't get to write a commit message,
> but it should just about work, and is of course very easy to do, what
> with not having to write any code to do it.
> 

Is it possible to serve with Apache/webdav as well as svnserve at the same
time? How would I do that, or is there a good direction to point me in?

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Directed add without checkout

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 5, 2006, at 00:14, Garrett Rooney wrote:

> On 4/4/06, Chris Ajello <ch...@redmccombsmedia.com> wrote:
>
>> The only problem with this is that it's grossly inefficient.  I  
>> would like
>> to be able to add files directly to a folder in the repository.   
>> Can anyone
>> help me?
>
> The command line client does not provide a command to do it, but it
> could be implemented relatively easily via the RA layer, i.e. in a
> script using the perl, python, or ruby bindings.  For a bit of example
> code that does a similar thing in C, see the tools/examples/svnput.c
> program in the subversion source tree.

Another option, if you're serving the repository with Apache, would  
be to mount the repository as a WebDAV volume and just write the file  
to the appropriate place. You wouldn't get to write a commit message,  
but it should just about work, and is of course very easy to do, what  
with not having to write any code to do it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Directed add without checkout

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 4/4/06, Chris Ajello <ch...@redmccombsmedia.com> wrote:

> The only problem with this is that it's grossly inefficient.  I would like
> to be able to add files directly to a folder in the repository.  Can anyone
> help me?

The command line client does not provide a command to do it, but it
could be implemented relatively easily via the RA layer, i.e. in a
script using the perl, python, or ruby bindings.  For a bit of example
code that does a similar thing in C, see the tools/examples/svnput.c
program in the subversion source tree.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org