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
We'll be using this to 'put' files directly into the repositories as a
-- 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" <firstname.lastname@example.org> 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). > > HTH > > John --------------------------------------------------------------------- To unsubscribe, e-mail: email@example.com For additional commands, e-mail: firstname.lastname@example.orgReceived on Fri Aug 17 19:30:00 2007
This is an archived mail posted to the Subversion Users mailing list.