You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by G G <go...@gmail.com> on 2010/09/16 13:17:27 UTC
Fwd: Commit problem: resource is missing or not locked
Hello guys!
I'm a svn newbie... I'm using svn in a php project and for many months
I had not problems and I commited my data many times.
Recently, I did a big refactoring in my application and I
moved/delete/overwritten many files (forgetting the svn issues).
Unfortunately now I'm not anymore able to commit my data because of
the following error:
'[directory]' is missing or not locked
I did too many important improvement to revert my copy but I'm stuck
because the commit fails every time...
How I can fix this problem?
Do you think that exporting my project and doing a new commit to the
repository can be a good idea?
Thank you very much
Gianluca
PS.
I read many suggestions on the web like this
http://vegdave.wordpress.com/2007/07/03/howto-resolve-svn-working-copy-directory-is-missing-or-not-locked/
and
http://kb.ucla.edu/articles/svn-working-copy-filename-is-missing-or-not-locked
but withouth luck...
RE: Commit problem: resource is missing or not locked
Posted by Bob Archer <Bo...@amsi.com>.
> > Hello guys!
> > I'm a svn newbie... I'm using svn in a php project and for many
> > months
> > I had not problems and I commited my data many times.
> > Recently, I did a big refactoring in my application and I
> > moved/delete/overwritten many files (forgetting the svn issues).
> > Unfortunately now I'm not anymore able to commit my data because
> of
> > the following error:
> >
> > '[directory]' is missing or not locked
> >
> > I did too many important improvement to revert my copy but I'm
> > stuck
> > because the commit fails every time...
> >
> > How I can fix this problem?
>
> Did you possible delete/move a folder using the OS delete/move
> rather than the T-SVN version as you were moving stuff around?
>
> Have you done an update? You might want to copy your WC and do an
> update on it. See if any folders are brought back. If they are,
> that means you used OS move/delete rather than the SVN versions. If
> that's the case you will have to use svn delete or move.
>
>
> > Do you think that exporting my project and doing a new commit to
> > the
> > repository can be a good idea?
>
> I'm not sure what you mean here. Do you mean exporting your working
> copy and then importing it in starting a new path? If you do that
> you will lose all your existing history.
>
> What you can do possibly is do is do a second check out to a new
> folder. Then use windiff or beyond compare to re-do your changes...
> make sure to use T-SVN move/delete commands as you do it.
>
Sorry, thought this was the T-SVn list. Anyway... all the above applies to SVN except if you are not on windows you would need to use a platform appropriate folder/file compare tool.
BOb
RE: Commit problem: resource is missing or not locked
Posted by Bob Archer <Bo...@amsi.com>.
> Hello guys!
> I'm a svn newbie... I'm using svn in a php project and for many
> months
> I had not problems and I commited my data many times.
> Recently, I did a big refactoring in my application and I
> moved/delete/overwritten many files (forgetting the svn issues).
> Unfortunately now I'm not anymore able to commit my data because of
> the following error:
>
> '[directory]' is missing or not locked
>
> I did too many important improvement to revert my copy but I'm
> stuck
> because the commit fails every time...
>
> How I can fix this problem?
Did you possible delete/move a folder using the OS delete/move rather than the T-SVN version as you were moving stuff around?
Have you done an update? You might want to copy your WC and do an update on it. See if any folders are brought back. If they are, that means you used OS move/delete rather than the SVN versions. If that's the case you will have to use svn delete or move.
> Do you think that exporting my project and doing a new commit to
> the
> repository can be a good idea?
I'm not sure what you mean here. Do you mean exporting your working copy and then importing it in starting a new path? If you do that you will lose all your existing history.
What you can do possibly is do is do a second check out to a new folder. Then use windiff or beyond compare to re-do your changes... make sure to use T-SVN move/delete commands as you do it.
Hth,
BOb