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

RE: merge BASE:HEAD vs update

From: Bert Huijben <bert_at_qqmail.nl>
Date: Tue, 2 Mar 2010 12:04:28 +0100

svn merge -r BASE:HEAD --dry-run

 

Does a merge from the current revision of the root of the merge (where BASE
is translated to a specific revision) to the head revision of all files and
folders below the root using mergetracking.

 

'svn update' updates each individual path from its current revision to the
HEAD revision, to make the working copies BASE represent the entire tree at
HEAD.

 

These two operations are not the same, so the results differ.

 

Under some specific circumstances the result might be similar: E.g. when the
working copy is on exactly one revision (not mixed revision).

 

The command

svn status -u

(-u is short for --show-updates)

 

Gives a better indication on what an update will retrieve, but doesn't look
at the file contents to see if you would get any textual conflicts

 

                Bert Huijben

 

From: Mark Keisler [mailto:grimm26_at_gmail.com]
Sent: maandag 1 maart 2010 21:45
To: users_at_subversion.apache.org
Subject: merge BASE:HEAD vs update

 

I use svn merge -r BASE:HEAD --dry-run . to check what an update will do to
me. Today, it predicted all kinds of trouble, but then update worked just
fine. Why is that?

% svn merge -r BASE:HEAD --dry-run .
--- Merging r862 through r970 into 'TWiki/Plugins/ReqDocInfoPlugin.pm':
 G TWiki/Plugins/ReqDocInfoPlugin.pm
--- Merging r862 through r970 into 'TWiki/Plugins/BugzillaQueryPlugin.pm':
 G TWiki/Plugins/BugzillaQueryPlugin.pm
--- Merging r862 through r970 into 'TWiki/Plugins/ReqErrorPlugin.pm':
 G TWiki/Plugins/ReqErrorPlugin.pm
--- Merging r862 through r970 into 'TWiki/Plugins/ReqNewDocPlugin.pm':
 G TWiki/Plugins/ReqNewDocPlugin.pm
--- Merging r862 through r970 into 'TWiki/Plugins':
C TWiki/Plugins/ReqMarkupPlugin/ReqMarkupPlugin.txt
--- Merging r862 through r970 into 'TWiki/Plugins/ReqMarkupPlugin.pm':
 G TWiki/Plugins/ReqMarkupPlugin.pm
--- Merging r862 through r970 into 'TWiki/Plugins/ReqNewReqMarkupPlugin.pm':
CG TWiki/Plugins/ReqNewReqMarkupPlugin.pm
--- Merging r862 through r970 into 'TWiki/Plugins':
 G TWiki/Plugins
--- Merging r862 through r970 into 'TWiki/Contrib':
C TWiki/Contrib/Dude/Utilities/MyConfig.pm
   C TWiki/Contrib/Dude/RM/ExportProcessor
   C TWiki/Contrib/Dude/RM/ConfigFiles/RmReqtTemplateStrings.txt
 G TWiki/Contrib
Summary of conflicts:
  Text conflicts: 3
  Tree conflicts: 2
% svn update
U TWiki/Plugins/ReqMarkupPlugin/ReqMarkupPlugin.txt
U TWiki/Plugins/ReqNewReqMarkupPlugin.pm
U TWiki/Contrib/Dude/Utilities/MyConfig.pm
Updated to revision 970.

-- 
Mark
"Blessed is he who finds happiness in his own foolishness, for he will
always be happy."
Received on 2010-03-02 12:05:09 CET

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