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

Re: request for "pretend" option

From: Hans Anderson <windsurf17_at_gmail.com>
Date: 2006-03-28 22:04:58 CEST

What about "svn status -u" -- I'm a newbie, but needed this dry-run
feature and that has been doing the trick.

From the book:

------

None of the above invocations to svn status contact the repository,
they work only locally by comparing the metadata in the .svn directory
with the working copy. Finally, there is the --show-updates (-u)
switch, which contacts the repository and adds information about
things that are out-of-date:

(this chunk didn't paste well /)
$ svn status --show-updates --verbose
M * 44 23 sally README
M 44 20 harry bar.c
* 44 35 harry stuff/trout.c
D 44 19 ira stuff/fish.c
A 0 ? ? stuff/things/bloo.h
Status against revision: 46
(/)

Notice the two asterisks: if you were to run svn update at this point,
you would receive changes to README and trout.c. This tells you some
very useful information—you'll need to update and get the server
changes on README before you commit, or the repository will reject
your commit for being outof-date. (More on this subject later.)

----
Hans
On 3/28/06, Gregory Margo <gmargo@pacbell.net> wrote:
> On Mon, Mar 27, 2006 at 06:47:16PM -0500, David Corbin wrote:
> > On Sunday 26 March 2006 08:50 pm, Gregory Margo wrote:
> > > On Sun, Mar 26, 2006 at 02:23:48PM -0500, David Corbin wrote:
> > > > On Sunday 26 March 2006 12:29 pm, Craig White wrote:
> > > > > On Sun, 2006-03-26 at 11:40 -0500, David Corbin wrote:
> > > > > > I'd dearly like a command line option that says "show me what you'd
> > > > > > do, but don't do it".  This is often "-n" (rsync, make).  When doing
> > > > > > repository operations (as opposed to working-copy operations), it
> > > > > > would be nice to verify what's really happening before screwing up
> > > > > > and recording it for all time. :)
> > > > >
> > > > > ----
> > > > > some of the commands have a '--dry-run' option
> > > >
> > > > According to 1.3.0 help, only merge.  I would like to see it on delete,
> > > > copy, and import at the least.
> > >
> > > And "update".
> >
> > It's not in the help for the 1.3.
>
> I wasn't clear enough.  I didn't mean that "update" already had a
> dry run option.  I meant that I would like to see a dry run option
> added to the update command.  IMHO, that's a much more frequent
> operation than delete, copy, or import.
>
> --
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Gregory H. Margo
> gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
--
Hans Anderson
http://hansanderson.com/
http://worldwidewedgy.com/
http://straight-to-audio.com/
http://mockumentary.com/
http://windsurf.hansanderson.com/
http://windlog.hansanderson.com/
http://devilsradar.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 28 22:06:31 2006

This is an archived mail posted to the Subversion Users mailing list.