You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mark Keisler <gr...@gmail.com> on 2010/03/01 20:44:31 UTC

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."

RE: merge BASE:HEAD vs update

Posted by Bert Huijben <be...@qqmail.nl>.
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@gmail.com] 
Sent: maandag 1 maart 2010 21:45
To: users@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."