Re: svn 1.7: how to recover from a lost pristine file
From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Wed, 28 Mar 2012 17:24:30 +0200
On Wed, Mar 28, 2012 at 5:06 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
No, not yet. When I have some more time I'll try to reproduce it.
In the meantime, I experimented a bit more with '--set-depth exclude',
[[[
C:\WC>svn-1.7 st
C:\WC>svn-1.7 up --set-depth exclude build.properties
C:\WC>svn-1.7 st
C:\WC>svn-1.7 up build.properties
### argh, a tree conflict. Panic! :-)
C:\WC>svn-1.7 st
### let's try to recover from this.
C:\WC>svn-1.7 resolve --accept=working build.properties
C:\WC>svn-1.7 st
### hm, how do I get it back as un-deleted without losing my mods
C:\WC>svn-1.7 add build.properties
C:\WC>svn-1.7 st
### cool! I've never seen 'RM' before. Anyway, this is not what I wanted :-(
C:\WC>copy build.properties build.properties.bak
C:\WC>svn-1.7 revert build.properties
C:\WC>svn-1.7 st
C:\WC>copy build.properties.bak build.properties
C:\WC>svn-1.7 st
### phew, that's better
So then I remembered there is a --force option for 'svn update'. That
[[[
C:\WC>svn-1.7 st
C:\WC>svn-1.7 up --set-depth exclude build.properties
C:\WC>svn-1.7 st
C:\WC>svn-1.7 up --force build.properties
C:\WC>svn-1.7 st
-- JohanReceived on 2012-03-28 17:25:24 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.