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

Re: RFC: Making only optional stuff optional in the svnsync command-line

From: David Glasser <glasser_at_mit.edu>
Date: 2006-08-03 05:57:58 CEST

Garrett Rooney <rooneg <at> electricjellyfish.net> writes:

> > For 'svnsync init', the SOURCE_URL should be an argument, not an
> > option. Let's drop --source-url altogether, and then argue for
> > weeks about whether the syntax should be 'svnsync init DEST_URL
> > SOURCE_URL' or 'svnsync init SOURCE_URL DEST_URL'. (I plan to use
> > the former, for consistency with other svnsync commands, and
> > because the DEST_URL is the one getting init'ted.)
>
> The main reason I made it an option was that I kept forgetting which
> URL came first. If you want to change it feel free though, I'm
> perfectly capable of checking the help output when I forget.

This isn't *too* much of a problem in the current implementation, since assuming
both repositories aren't brand new, if you get it backwards you'll just get an
error message saying that the destination repository already has content in it.

(On the other hand, if we ever wanted to extend svnsync to work in cases where
the repository already has content (say, to allow svk-style mirrored subtrees)
this argument wouldn't hold. But that's not now.)

By the way, I hesitate to post yet another patch since you might be about to
rewrite the command anyway, but I missed one constraint in documenting svnsync
init: the source also has to be a repository root.

--dave

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 3 05:58:50 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.