Showing posts with label subversion. Show all posts
Showing posts with label subversion. Show all posts

Monday, April 12, 2010

svn webdav - view previous revisions

So, if you want to see the previous revision for path
https://svn.company.com/platform/trunk/app/webroot/images/welcome/

Use this URL:
https://svn.company.com/platform/!svn/bc/2615/trunk/app/webroot/images/welcome/

Where 2615 is the revision number I want to see.

Thursday, January 28, 2010

160043 "Could not open the requested SVN filesystem"

After about a year since we set up subversion server, I needed to create a new project. So I ran
>svnadmin create myproject
We have svn hooked with apache - that is, https protocol.
When I tested the new url in a browser, I got the following error:
160043 "Could not open the requested SVN filesystem"

I found a lot of posts on the web that discussed this error message, but none suggested a solution other than upgrading svn and apache builds.
Since existing projects were working fine, I didn't see the need to upset my stable environment.

When I looked at apache logs, I saw the message:
Expected FS format between '1' and '3'; found format '4'

So that give me the hint - what search results for error 160043 were saying was correct, the version of apache's svn mod and svn server doesn't match. What they didn't tell me (or I missed the search result that did mention it) was that the easier fix is to create the project as follows:
>svnadmin create myproject --pre-1.5-compatible

This solved the problem for me.

Thursday, April 23, 2009

subversion checksum mismatch problem

I got hit with the subversion checksum mismatch error again today. I had faced this problem couple of weeks ago, but just checked out a new copy to avoid fixing the problem at that time. Today I thought I would dig deeper.

I saw two variations:
svn: Checksum mismatch for 'aaa'; expected: 'xxxxx', actual: 'yyy'
And:
Checksum mismatch while updating

I did few searches, and found that people had fairly complex set of steps to fix this. A simpler solution suggested was to check out a clean copy of your files, and then copy over all your changed files from the problem copy to your new copy. This was also painful for me because I had changes all over my working copy, and not just in the problem directory.


After looking at the svn files I found that the easy solution that worked for me (still involved checkout) was to
1. checkout a clean copy
2. for new and your problem checkouts, go to the folder where your svn mismatch error is thrown
3. in that folder, go to .svn folder
4. copy the entries file over from the clean copy.
5. svn cleanup on the problem folder
6. svn update

Wednesday, January 14, 2009

Ignoring svn entries in Cakephp

If you are trying to protect the svn related files so that they dont get shown in a browser, here is what worked for me after trying various things:

RewriteRule ^(.*/)*\.svn/(.*) - [F,L]

Thursday, November 13, 2008

cakephp - ignoring tmp from subversion

Some files like contents of tmp need to be ignored from versioning system like subversion.

I was being lazy, so instead of figuring it out, I did a google search and found this blog post that does exactly that:
http://pjhile.com/ignoring-cakephps-tmp-directory-with-subversion#comments

Basically, here is the command I used from that post:
svn propset svn:ignore 'tmp' .
svn ci -m 'Ignoring "tmp" directory.'