Difference between revisions of "SVN"

From CDOT Wiki
Jump to: navigation, search
(SVN commands)
(SVN commands)
Line 11: Line 11:
 
*Compare changes from one revision to another:
 
*Compare changes from one revision to another:
  
::<pre>svn diff -r 1:4 helloworld.cpp</pre>
+
::<pre>svn diff --revision 1:4 helloworld.cpp</pre>
  
 
::This example allows us to see what's changed between the first and fourth revision of the helloworld.cpp file.
 
::This example allows us to see what's changed between the first and fourth revision of the helloworld.cpp file.
  
 
::For a complete guide: [http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.diff.html http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.diff.html]
 
::For a complete guide: [http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.diff.html http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.diff.html]

Revision as of 19:53, 22 October 2006

Branch Maintenance

Repository layout:

  • trunk directory - "main line" of development
  • branches directory - branch copies
  • tag directory - tag copies

SVN commands

  • Compare changes from one revision to another:
svn diff --revision 1:4 helloworld.cpp
This example allows us to see what's changed between the first and fourth revision of the helloworld.cpp file.
For a complete guide: http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.diff.html