DragonFly bugs List (threaded) for 2008-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
undo + mv => unexpected
`undo -i' seems to track the wrong file after mv, see below.
Contents of file is correct;
`hammer history' seems correct.
-thomas
-
# sh -x undo-mv
+ mkdir /hammer/XXX.2082
+ cd /hammer/XXX.2082
+ echo XXX
+ sync
+ undo -i test
test: objid=0x00000001000186be
0x0000000100030d5f 16-Jul-2008 03:52:57
+ echo YYY
+ sync
+ undo -i test
test: objid=0x00000001000186be
0x0000000100030d5f 16-Jul-2008 03:52:57
0x0000000100030d63 16-Jul-2008 03:52:57
+ mv test test1
+ sync
+ undo -i test
test: objid=0x00000001000186be
0x0000000100030d5f 16-Jul-2008 03:52:57
0x0000000100030d63 16-Jul-2008 03:52:57
+ undo -i test1
+ echo ZZZ
+ sync
+ undo -i test
test: objid=0x00000001000186be
0x0000000100030d5f 16-Jul-2008 03:52:57
0x0000000100030d63 16-Jul-2008 03:52:57
0x0000000100030d69 16-Jul-2008 03:52:58
+ undo -i test1
+ mv test1 test
+ sync
+ undo -i test
test: objid=0x00000001000186be
0x0000000100030d5f 16-Jul-2008 03:52:57
0x0000000100030d63 16-Jul-2008 03:52:57
0x0000000100030d69 16-Jul-2008 03:52:58
+ undo -i test1
+ echo WWW
+ sync
+ undo -i test
+ undo -i test1
test1: objid=0x00000001000186be
0x0000000100030d5f 16-Jul-2008 03:52:57
0x0000000100030d63 16-Jul-2008 03:52:57
0x0000000100030d69 16-Jul-2008 03:52:58
0x0000000100030d6f 16-Jul-2008 03:52:58
- undo-mv
#!/bin/sh
# undo + mv => unexpected
mkdir /hammer/XXX.$$
cd /hammer/XXX.$$
echo XXX >>test
sync
undo -i test
echo YYY >>test
sync
undo -i test
mv test test1
sync
undo -i test
undo -i test1
echo ZZZ >>test1
sync
undo -i test
undo -i test1
mv test1 test
sync
undo -i test
undo -i test1
echo WWW >>test
sync
undo -i test
undo -i test1
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]