You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Peter Davis <pe...@pdavis.cx> on 2002/10/04 08:38:00 UTC
"svn sync"
I was just reading the incredibly old and out-of-date /IDEAS file, and I
noticed a proposal for 'svn sync'. Did anything come of that? I think it
would be just as useful as import -- perhaps more useful.
When I'm first starting a project, I like to set up the scm system right from
the start, and begin work inside my working directory. But I like to get at
least the framework for the first version coded before I worry about
committing every change as a separate revision, because after all, often
designs, directory structure, and code get shuffled around a lot until it
stabalizes. So, once I'm ready to commit, I have to go through and 'svn add'
and 'svn rm' about a hundred different things. I can't import, since the
destination already exists in subversion's tree. A 'sync' command would be
really cool.
Of course it'd be post-1.0, but I didn't see any issues filed for it. Was it
ruled out long ago? (I notice /IDEAS was last updated in, um, revision 1).
--
Peter Davis
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: "svn sync"
Posted by Peter Davis <pe...@pdavis.cx>.
On Monday 07 October 2002 13:03, Josef Wolf wrote:
> possibly designing it to have
>
> > an interactive mode. ("Add this file? Delete this file?"...)
>
> You would make Pavel happy if the first question would be
> "Add/remove/skip this file?" :)
Then we really would have a global use for --non-interactive (or whatever that
other flamewar was about :->)
--
Peter Davis
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: "svn sync"
Posted by Josef Wolf <jw...@raven.inka.de>.
On Fri, Oct 04, 2002 at 08:09:44AM -0500, Ben Collins-Sussman wrote:
> Peter Davis <pe...@pdavis.cx> writes:
>
> > I was just reading the incredibly old and out-of-date /IDEAS file, and I
> > noticed a proposal for 'svn sync'. Did anything come of that? I think it
> > would be just as useful as import -- perhaps more useful.
>
> Heh, you never actually said what the command is supposed to do, but I
> looked it up in the IDEAs file.
>
> Basically, the command just runs 'svn status' under the hood. Every
> unrecognized file or directory (those normally printed with a '?')
> gets scheduled for addition. Every missing file or directory
> (normally printed with a '!') gets scheduled for deletion.
>
> I think we've talked about this idea before -- but under different
> names. 'svn sync' sounds a bit too 2-way-ish... it's just an
> auto-scheduling tool. I think we've talked about calling such a
> command 'svn guess' or something -- and possibly designing it to have
> an interactive mode. ("Add this file? Delete this file?"...)
You would make Pavel happy if the first question would be
"Add/remove/skip this file?" :)
--
-- Josef Wolf -- jw@raven.inka.de --
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: "svn sync"
Posted by Nuutti Kotivuori <na...@iki.fi>.
Ben Collins-Sussman wrote:
> Peter Davis <pe...@pdavis.cx> writes:
>> I was just reading the incredibly old and out-of-date /IDEAS file,
>> and I noticed a proposal for 'svn sync'. Did anything come of
>> that? I think it would be just as useful as import -- perhaps more
>> useful.
>
> Heh, you never actually said what the command is supposed to do, but
> I looked it up in the IDEAs file.
>
> Basically, the command just runs 'svn status' under the hood. Every
> unrecognized file or directory (those normally printed with a '?')
> gets scheduled for addition. Every missing file or directory
> (normally printed with a '!') gets scheduled for deletion.
>
> I think we've talked about this idea before -- but under different
> names. 'svn sync' sounds a bit too 2-way-ish... it's just an
> auto-scheduling tool. I think we've talked about calling such a
> command 'svn guess' or something -- and possibly designing it to
> have an interactive mode. ("Add this file? Delete this file?"...)
>
> It would take about 20 minutes to write. Is there a demand for it?
Well this does have some things to do with handling vendor-branches as
well. This 'svn guess' functionality in those cases could be exactly
the same - except that in addition there could be something to try and
catch renames under the hood.
There was atleast a perl script to do the vendor branch things, maybe
it would have some stuff about this.
-- Naked
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: "svn sync"
Posted by Ben Collins-Sussman <su...@collab.net>.
Peter Davis <pe...@pdavis.cx> writes:
> I was just reading the incredibly old and out-of-date /IDEAS file, and I
> noticed a proposal for 'svn sync'. Did anything come of that? I think it
> would be just as useful as import -- perhaps more useful.
Heh, you never actually said what the command is supposed to do, but I
looked it up in the IDEAs file.
Basically, the command just runs 'svn status' under the hood. Every
unrecognized file or directory (those normally printed with a '?')
gets scheduled for addition. Every missing file or directory
(normally printed with a '!') gets scheduled for deletion.
I think we've talked about this idea before -- but under different
names. 'svn sync' sounds a bit too 2-way-ish... it's just an
auto-scheduling tool. I think we've talked about calling such a
command 'svn guess' or something -- and possibly designing it to have
an interactive mode. ("Add this file? Delete this file?"...)
It would take about 20 minutes to write. Is there a demand for it?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: "svn sync"
Posted by Scott Lamb <sl...@slamb.org>.
Ben Collins wrote:
>That would be especially useful for doing something like:
>
>cd wc
>patch -p1 < ../very-large.diff
>svn sync
>svn ci -m "Functionality patch by BillyBob"
>
>
I'd really like to see "svn patch ../very-large.diff" where svn patch is
a command capable of handling moves, adds, removes, and property changes.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: "svn sync"
Posted by Ben Collins <bc...@debian.org>.
On Fri, Oct 04, 2002 at 01:38:00AM -0700, Peter Davis wrote:
> I was just reading the incredibly old and out-of-date /IDEAS file, and I
> noticed a proposal for 'svn sync'. Did anything come of that? I think it
> would be just as useful as import -- perhaps more useful.
>
> When I'm first starting a project, I like to set up the scm system right from
> the start, and begin work inside my working directory. But I like to get at
> least the framework for the first version coded before I worry about
> committing every change as a separate revision, because after all, often
> designs, directory structure, and code get shuffled around a lot until it
> stabalizes. So, once I'm ready to commit, I have to go through and 'svn add'
> and 'svn rm' about a hundred different things. I can't import, since the
> destination already exists in subversion's tree. A 'sync' command would be
> really cool.
>
> Of course it'd be post-1.0, but I didn't see any issues filed for it. Was it
> ruled out long ago? (I notice /IDEAS was last updated in, um, revision 1).
That would be especially useful for doing something like:
cd wc
patch -p1 < ../very-large.diff
svn sync
svn ci -m "Functionality patch by BillyBob"
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org