Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SVNNotes
Edit
PageHistory
Diff
Info
LikePages
Random SubVersion notes. !!! Status Characters <?plugin OldStyleTable |*Char*|*Meaning* |U|Updated your (unmodified?) copy to the latest version |C|Conflict while updating |M|Modified - your local version has changes that aren't in the latest version |G|Merged - your modified version had patches applied from the latest version ?> !!! Flagging a file as executable <pre> svn propset svn:executable on ''filename'' </pre> !!! Merging issues If you change the name of a file remember to include the old name at the end of the merge, or you will get a weird error message. <verbatim> svn merge new.c -r1:5 ../old/prevnew.c </verbatim> If automatic merging fails, after manually editing the file, remember to announce the conflict as resolved: <verbatim> svn resolved new.c </verbatim> !!! Deleting directories After <tt>svn delete</tt>, you must manually delete the directory afterwards, otherwise the next <tt>svn commit</tt> will fail with a weird error message. This might be fixed in 1.1.14. !!! Removing revisions from a repository If you want to remove the last X revisions from a repository, you can do it this way: <verbatim> svnadmin create repo2 svnadmin dump -r 0:173 repo1 | svnadmin load repo2 </verbatim> This creates a new repository called <tt>repo2</tt> and dumps revisions 0 to 173 (inclusive) from <tt>repo1</tt> into it. !!! Getting rid of external items in your repository <verbatim> svn propdel svn:externals </verbatim> !!! Checking out a project to use If you want to checkout a local repository into the current directory type: <verbatim> svn co file:///home/my-svn-dir/name-of-my-repository . </verbatim> !!! SVN+SSH on a port other than 22 Open the file ~~/.subversion/config in your favorite text editor.%%% In the section ~[tunnels] add a line like follows (for port 222)~: <verbatim> ssh2 = $SVN_SSH ssh -p 222 </verbatim> Then check out your repository using the new tunnel~: <verbatim> svn co svn+ssh2://my.svn.server/path/to/svn </verbatim> ---- CategoryVersionControl
One page links to
SVNNotes
:
SubVersion