Re: svn update/diff handles renames confusingly
From: <makl_at_tigris.org>
Date: 2004-02-16 08:39:55 CET
There is an easier way for recovery without using merge.
$ svn co -r 6441 https://svn.apache.org/repos/asf/incubator/spamassassin/trunk/rules/
$ echo '#foo' 1>>rules/70_cvs_rules_under_test.cf
$ svn up rules
Look what the current version of 70_cvs_rules_under_test.cf is.
$ svn st -v rules/70_cvs_rules_under_test.cf
Save the local modifications.
$ svn diff rules/70_cvs_rules_under_test.cf 1>rules/70_cvs_rules_under_test.cf.mod
Revert the local changes so update will work.
$ svn revert rules/70_cvs_rules_under_test.cf
$ svn up rules
Now your working copy is at head revision
Look in the log for the new name.
$ svn log -v -r6441:HEAD rules >logfile
You will find the following line
A /incubator/spamassassin/trunk/rules/70_testing.cf (from /incubator/spamassassin/trunk/rules/70_cvs_rules_under_test.cf:6606)
or use the message
move 70_cvs_rules_under_test.cf to rules/70_testing.cf
Incorporate your local modifications into 70_testing.cf
If someone want to fix this, please note that there are other related problems. See Issue 1736
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.