On Mon, May 24, 2010 at 6:03 PM, Peng Yu <pengyu.ut_at_gmail.com> wrote:
> I might change filenames or even move files around several times
> before I 'commit'. Since I need tell svn the renames and moves that I
> have done, does svn keep all the intermediate changes when I finally
> 'commit'.
>
> I think that svn should not keep track of the intermediate changes
> after 'commit'. But I'm not sure if svn is doing so. Could you please
> let me know if it is the case?
Do you know that most version control systems don't track renaming and
moving at all? Subversion is one of the few that does it. In fact, I
don't know of any version control system that can track random file
renaming with the operating system rename/move commands.
Normally, once you name a file or place a file in a particular
directory, you don't change it because it causes confusion. In many
version control systems, the renamed or moved file is not the same as
the old one, and in the version control systems that support renaming,
moving or renaming files causes user confusion. You simply don't do it
unless you have to.
However, to answer your question, as long as you use Subversion's move
command, Subversion will track everything until you get the final name
you want:
$ ls
bar foo
$ svn mv foo barfoo
D foo
C barfoo
$ls
bar barfoo
$ svn mv barfoo foobar
D barfoo
C foobar
$svn status
D foo
C barfoo
As others have suggested, why not download Subversion? It's free and
there are no licenses. Follow the examples in the book at
http://svnbook.com. See if it does what you want.
That will answer most of your questions on how Subversion works. You
can find the right binary on:
<http://subversion.apache.org/packages.html>.
--
David Weintraub
qazwart_at_gmail.com
Received on 2010-05-25 20:41:06 CEST