Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1573 - trunk: . fsvs/tests

fsvs
Discussion topic

Back to topic list

svn commit: r1573 - trunk: . fsvs/tests

Author pmarek
Full name P.Marek
Date 2008-04-01 22:23:02 PDT
Message Author: pmarek
Date: 2008-04-01 22:23:01-0700
New Revision: 1573

Modified:
   trunk/ (props changed)
   trunk/fsvs/tests/044_copyfrom

Log:
Bugfix for reverting copy relations under high load - when "touch && fsvs
ci" wraps into the next second, so that the next "touch" uses a different
timestamp.




Modified: trunk/fsvs/tests/044_copyfrom
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/tests/0​44_copyfrom?view=dif​f&rev=1573&p​1=trunk/fsvs/tests/0​44_copyfrom&p2=t​runk/fsvs/tests/044_​copyfrom&r1=1572​&r2=1573
====================​====================​====================​==================
--- trunk/fsvs/tests/044_copyfrom (original)
+++ trunk/fsvs/tests/044_copyfrom 2008-04-01 22:23:01-0700
@@ -21,7 +21,9 @@
 touch 1 4 5 s
 $BINq ci -mx
 
-touch 2 3 6
+# If these file had a different timestamp, the revert below would only
+# change this; but we want the copy relations to be removed.
+touch -r 1 2 3 6
 $BINdflt cp 1 2
 $BINdflt cp 5 6
 $BINdflt cp ./4 $WC/3
@@ -61,12 +63,9 @@
   $ERROR "Loading copyfrom fails."
 fi
 
-# This doesn't work, as the copyfrom information is added, not replaced.
-# TODO: Implement revert for such entries, and test here.
-# rm $copydb
-# $BINq sync-repos
-$BINdflt revert *
-# if [[ `true | $BINdflt cp load -v` == "0 copyfrom relations loaded." ]]
+# A "true | fsvs cp load" doesn't work, as the copyfrom information is
+# added, not replaced. So we revert.
+$BINdflt revert .
 if [[ `$BINdflt cp dump -v` == "No copyfrom information was written." ]]
 then
   $SUCCESS "Purging copyfrom works"

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1573 - trunk: . fsvs/tests pmarek P.Marek 2008-04-01 22:23:02 PDT
Messages per page: