# Re: Can't commit because current already exists

From: Flavio Stanchina <flavio_at_stanchina.net>
Date: 2007-03-12 21:55:06 CET

Larry Martell wrote:
> We have a SVN repository on windows. Starting today, no one can commit.
> Attempts to commit fail with:
>
> Error Commit failed
> Can't move 'H:\path\to\svn\repo\db\current.21.tmp' to
> 'H:\path\to\svn\repo\db\current':
> Cannot create a file when that file already exists.
> [...]
> Right now I need to know how I can clean this up so developers can
> commit again?
> (And once that crisis is passed, I'd like to know how this happened.)

Dump the repository, move away the original and load the dump in a fresh
repo. Hopefully that should fix the problems.

Then you might want to check what's different between the broken repo and
the fresh one.

<rant>
That 'H:' drive letter makes me suspect that you're storing the repo on a
network drive. I would rather do version control with pencil and paper than
keep a repo on a network drive. If that's actually what you're doing, set
--