Posts Tagged ‘SVN

To add a directory without any of its contents/files to SVN you can do this:
(You need to be using SVN v1.5 or greater for this to work)
1svn add –depth=empty app/tmp
You can then SVN ignore the contents to prevent it being version controlled.

If you want to view changed/modified/added files from previous revisions with SVN you can do this:
12svn log -v -r 25
# This will show you the changes that were committed in v25

This section of the SVN book tells you how to roll back to previous versions, using the merge command on your working copy:
http://svnbook.red-bean.com/en/1.0/svn-book.html#svn-ch-4-sect-4.2

SVN checkout over ssh

17, Jan 2009

Checks out over an SSH connection if no HTTPS access is available. For my own records:
1svn checkout svn+ssh://your_user@yourdomain.com/usr/local/svn/ReposName/trunk

If you want to ignore (skip) files inside a directory with SVN:
1svn pe svn:ignore smarty/templates_c
This will prompt you for a pattern (*.php) via your editor of choice. So you’ll need the EDITOR environment variable set in your ~bash.rc / .profile etc
1EDITOR=vi;  export EDITOR
Update (14/04/09): This only ignores files that are not already version controlled (inside [...]


top