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

Re: Need to run an SVN Update which preserves local changes

From: Hyrum K. Wright <hyrum_at_hyrumwright.org>
Date: Wed, 29 Jul 2009 08:34:51 -0500

On Jul 29, 2009, at 8:28 AM, Ryan Schmidt wrote:

> On Jul 29, 2009, at 08:18, Alexander Maw wrote:
>
>> It just occurred to me that I might preserve locally changed files
>> by having a script identify and backup locally changed files and
>> restore them after the SVN update, is there an SVN command to
>> output if a file has local changes?
>
> Yes, "svn status". Lines beginning with "M" are files with modified
> contents.

The other question would be "why do you need to backup locally changed
files?" Subversion will merge the updates with your local changes, or
flag a conflict if it can't do the merge automatically. Subversion is
designed *never* to remove or overwrite local changes.

It could be that you are looking for a solution to a non-existent
problem.

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2376601

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-29 15:36:19 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.