On Tuesday 22 February 2005 18:03, Louis Haynes wrote:
> I've search the documentation on this but have not seen a resolution
> for my problem.
>
> I have just created a repository and then checked out the code. Created
> some new files, ran my ant build file which updated some other files.
> The problem is that I added the build directories to svn and in my ant
> build script the build directories get deleted and recreated, deleting
> all the svn metadata for that directory. So now that I'm trying to
> commit my new additions and updates I get the following error:
>
> svn: Commit failed (details follow):
> svn: Working copy '/dev/local/project/extras/viewgen/build' not locked
>
> I have tried to use svn update, remove, checkout, svnadmin recover, and
> just about any combination to get around this problem.
>
> How do I correct this?
Fix ant to not delete the directory.
Moreover: DO NOT STORE BUILT FILES IN A VCS!
Anything that is built by your environment does not belong in the version
control (regardless of whether you use svn, cvs, vss, etc.pp). Any
Developer can rebuild that him-/herself.
While Java might be very forgiving with this behaviour any C++ Programmer
can tell you that even the slightest change in Compiler-Version or
LibC-Version changes your binaries completely.
This is the material for fantastic stories about debugging woes! You can
scare whole university classes senseless with that... ;-)
Besides: this wastes valuable memory and bandwidth on the VCS-Server.
Konrad
- application/pgp-signature attachment: stored
Received on Tue Feb 22 20:15:31 2005