[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can't update working files

From: Tim Hill <drtimhill_at_comcast.net>
Date: 2007-01-10 17:32:13 CET

Without knowing how you screwed up, its difficult to say exactly the
state of things.

Probably the best starting point is to get a clean working copy so
you can see the state of the repo. I'd use the command-line tools for
this, not TSVN. Create a new "Temp" folder somewhere and then
checkout the entire repo. Then you can examine the state of the repo
and see what it actually looks like on the server. Compare the new WC
tree to the old WC tree (I use a nice GUI tool called FileSync, there
are plenty of others).

Then, I would use this new working copy to clean things up. If
directories need moving, move them within the new WC -- using the SVN
command of course! If there is stuff missing from the new WC that is
hanging around in the old WC (not checked in), manually add/copy it
into the new WC as if you were just doing normal edits. Commit at
appropriate "critical" times. You may need to steal a lock if you
also managed to lock a file or two.

Finally, when the new WC and the repo (after a final commit) look the
way you want, scrap the old WC totally -- its toast. Then you can
checkout again in TSVN and you should be in good shape.

The only issue is you will have a bunch of extra revs laying around
in the repo, but that's not a big deal.

--Tim

On Jan 9, 2007, at 3:35 PM, Andrew Lowe wrote:

> Hi all,
> I think I've stuffed things up big time, screwed up my working
> copy and probably caused angst to the repository. I'm running
> Windows XP
> on the desktop and Win2000 on the server, the latest version of svn
> and
> TortoiseSVN and have a directory structure:
>
> project root
> |
> +- dir1
> | + dir1A
> | + dir1B
> | + dir1C
> |
> +- dir2
> + dir2A
> + dir2B
> + dir2C
>
> I tried to move dir1B to be under dir2:
>
> project root
> |
> +- dir1
> | + dir1A
> | + dir1C
> |
> +- dir2
> + dir1B
> + dir2A
> + dir2B
> + dir2C
>
> I'm sure I didn't do things "the correct way". I think I did a "normal
> move" rather than an "svn move" and then tried various permutations
> and
> combinations of copy/move/add/scratch head/delete to "fix" things but
> stuffed it up big time. Now if I try and do an update on dir1:
>
> root> svn update dir1
>
> I get:
>
> svn: Working copy 'dir1' locked
> svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for
> details)
>
> I then run
>
> root> svn cleanup dir1
>
> and get:
>
> svn: In directory 'dir1'
> svn: Error processing command 'modify-entry' in 'dir1'
> svn: Error modifying entry for 'dir1B'
> svn: 'dir1B' is not under version control
>
> If, using Win Explorer, I look at dir1, I see that dir1B is NOT there,
> it's sitting under dir2 as I placed it. I used Tortoise and fired
> up the
> Repo-browser and it's also not under dir1 in the repository.
>
> My question is how do I fix up dir1 so that it's "usable" once
> again and I can once again Update? Any thoughts are greatly
> appreciated.
>
> Regards,
> Andrew Lowe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 10 17:32:38 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.