Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts

Friday, January 27, 2012

Downgrade svn from 1.6 to 1.7

I'm using a Sabayon as my primary OS now. It's a rolling distro. And it fairly quickly incorporates latest changes from mainline projects.
Few weeks ago among other updates subversion was upgraded from 1.6 to 1.7. At first there were no problems, because I mainly used command line svn client. I upgraded my working copies to 1.7 and was happy.
The problem started to arise when I tried to work with upgraded working copy from my IDE - Idea. The first problem was that Idea does not support subversion 1.7. And will not support it for a few more month. 
So, I tried to downgrade subversion package on my OS. This failed, because 1.6 was removed from repository. 
There was a chance to build 1.6 from sources. But I prefer not to mix binary and compiled from sources packages. 
I ended up with solution suggested on stackoverflow. I used another OS (Ubuntu) on my multi-boot machine which still has subversion 1.6. From there I deleted a subversion folders from my projects. Which is easy in subversion 1.7 ;) Then I made a checkout to existing projects. This allowed me to not loose any changes. Then I rebooted to my primary OS and used subversion from IDE only.

Thursday, December 10, 2009

Ignoring multiple files in Subversion using command line

Ignoring single in Subversion file/folder is as easy as
svn propset svn:ignore bin .
This would make svn ignore folder bin in current directory (final dot is mandatory).
But ignoring multiple files is a little bit more complicated. Firstly you should have one of environment variables SVN_EDITOR, VISUAL or EDITOR set. This can be done as easy as
export SVN_EDITOR=geany
This would make Geany you svn editor. This assumes Geany is installed of cause :)
Then simply start your svn editor and add all files you want to ignore
svn propedit svn:ignore .
The editor would start and you can add as many files as you like, one per line. Again, final dot means that you edit ignored files in current folder.
That's it :)