RE: subversion won’t add new files
From: John Maher <JohnM_at_rotair.com>
Date: Wed, 24 Sep 2014 16:42:03 +0000
Thanks for the link jb. Reading through that section of the book I encountered "file changes" and "tree changes." It also just mentions "changes" numerous times. On my initial reading it appears that when the book mentions "changes" without specifying the type (like the definition of the "Commit" command) it is talking about "file changes" ONLY and it is excluding "tree changes." Just wondering if that assumption would be right most of the time or could it go either way and I would have to test to see which one was applicable. I tried looking at other mentions of the "changes" but due to my ignorance of the software I wasn't able to come to any conclusions myself.
-----Original Message-----
On Sep 24, 2014, at 9:14 AM, John Maher <JohnM_at_rotair.com> wrote:
> Yes, you must "svn add" any files you want Subversion to add to the repository. It's not meant to be confusing... I found the book exceptionally clear and helpful in explaining how Subversion works and is meant to be used.
The "svn add" only needs to be performed once so that SVN knows to begin tracking the file. Afterwards, any subsequent changes to the file will be commited. Adding a file to the repository is a change to the repository and must be indicated with the "svn add". This change to the repository (the addititon) is then commited upon "svn commit".
Likewise, when you choose to remove a file from the repository, you must use "svn rm". The deletion is then commited with "svn commit". Simply removing a file from your working copy is not sufficient.
Please review the "Basic Work Cycle" section of the SVN book for more information.
http://svnbook.red-bean.com/en/1.7/svn.tour.cycle.html
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.