MRG
MRG

Reputation: 3219

svn : Can not Parse lock / entries hashfile

Whenever I am trying to lock or unlock any file in the project it gives me error :

svn : Can not Parse lock / entries hashfile

Now I am not able to take lock on file.

Some clues : 1. We have just migrated our svn repositories from one url to other url

Is there any way I can reset the lock file of repository.

Upvotes: 1

Views: 2434

Answers (2)

Ben Blank
Ben Blank

Reputation: 56634

It is possible your repository was damaged in the migration (though check the working copy first, as Bert suggests — never mess with your repo's innards unless you have no other choice). If so, you can "manually expire" all locks on the repository by deleting the <root>/db/locks folder.

This will not affect your repo's contents, but will destroy all lock data. Also be aware that, if your repo's lock data got corrupted, it's entirely possible that other data did as well. Keep the pre-migration backups around.

Upvotes: 2

Bert Huijben
Bert Huijben

Reputation: 19622

This sounds like a corrupted working copy. (Missing/corrupted files in the .svn subdirectory of your project).

I would recommend verifying the issue with another subversionclient (E.g. TortoiseSVN or the svn client), and then checking out a new working copy.

Upvotes: 1

Related Questions