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

Re: Anyone know how to put a file directly into a repository over command line - simulate checkin

From: Jay Crouch <jay_at_safestream.com>
Date: 2007-08-17 19:31:54 CEST


But like Ryan, I'm not versed enough with subversion or C to update this
example completely. Is there anyone available that could help me tweak it?

We'll be using this to 'put' files directly into the repositories as a
backend implementation --> meaning no prompting can be used. To this end we
need to modify the script so it supports the following cmd line args -> we
intent to make it very similar to svn import:

put: Commit a unversioned file(s) into the repository (overwriting any
versioned file at destination).
usage: svnput [PATH] URL
  Recursively commit a copy of PATH to URL.
  If PATH is omitted '.' is assumed.
  Parent directories are created as necessary in the repository.
  If PATH is a directory, the contents of the directory are added
  directly under URL.
Valid options:
  -N [--non-recursive]          : operate on singe directory only
  -m [--message] arg            : specify commit message ARG
  --username arg                : specify a username ARG
  --password arg                : specify a password ARG
  --non-interactive             : do no interactive prompting
I'm pretty sure I can figure out how to do the command line options, but the
recursion (even the iteration of multiple files in a single directory) will
be over my head.
Can anyone help?
On 8/17/07 7:11 AM, "John Peacock" <jpeacock@rowman.com> wrote:
> Ryan Schmidt wrote:
>> I haven't used it, and I'm not sufficiently versed in the Subversion
>> APIs to tell from the source code whether this is doing a
>> delete-then-add or whether it's updating the existing file. You could
>> try it out and see what the log looks like afterward.
> It doesn't do a delete-then-add, but it also doesn't even check the contents
> of
> the existing rev in the repository.  Technically, it will store the new
> revision
> as a delta against the previous one, but there is no requirement that the
> files
> be in any way similar.  That's what makes it so dangers; it just stomps on
> whatever is in the repository at that path (so you could easily overwrite the
> wrong file).
> John
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 17 19:30:00 2007

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.