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

AW: tree conflict deletes files

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Fri, 13 Jul 2012 08:17:24 +0000

Hi, Johnea,

> Von: johnea [mailto:me_at_johnea.net]
>
> I've administered low volume svn repositories for approx. 7 years, and I'd
> like to add my woes to those of other 'tree conflict' victims.
>
> I have a small repo, to which I am the only one committing.
>
> On one machine, I created a directory of source in the repo, but did not
> add it to the repo.
>
> I realized I could only build this code on a second machine, so I copied
> the files manually (outside of svn) to the second machine, completed the
> build, and added the resulting directories and files to the repo and
> committed.
>
> This is were the tears start: I went back to the first machine and
> performed an 'svn up' without first deleting the non-version controlled,
> non-built, copy of the directory.
>
> This resulted in a tree conflict, which I was totally unable to resolve. I
> moved this entire repo directory aside, and re checked out the entire
> repository.
>
> At this point I thought I had resolved my issues, however when I tried to
> update teh second/build machine it also registered a tree conflict.
>
> Each time I try to update either machine, the update deletes all of the
> files from the affected directory, leaving only the empty directory
> structure. Then announces that the directory is in tree conflict.
>
> An attempted: svn resolve --accept=theirs-full DIR, informs me that only -
> -accept=working is allowed. However, now svn has deleted all of the files
> in the DIR and the working copy is a set of empty directories, so the --
> accept=working now accepts a set of empty directories, marking all of the
> files I'm trying to download as Deleted.
>
> Every time I try to update, the directories are emptied, and my only
> option is to accept these now empty directories.
>
> Somewhow I seem to have gotten svn into some sort of tree-conflict loop.
>
> I've had to remove and re-check out the repo on both machines to resolve
> the issue. This is a modest sized project. If this was a large source
> collection (gigabytes), this complete re checkout would be totally
> unfeasible.

Did you try to do a "svn revert -R" after the update? This will drop all local modifications, but it should save you the hassle of a fresh checkout.

> I'm running 1.7.5 svn client on both machines and 1.7.something on the
> server.
>
> Hi, my names johnea, and I'm a tree conflict victim

Best regards

Markus Schaber

-- 
___________________________
We software Automation.
3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50
Email: m.schaber@3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 
Received on 2012-07-13 10:18:09 CEST

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.