Actions
Bug #1074
closedundo + mv => unexpected
Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
`undo -i' seems to track the wrong file after mv, see below.
Contents of file is correct;
`hammer history' seems correct.
#!/bin/sh
Contents of file is correct;
`hammer history' seems correct.
- 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
thomas
- 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
Actions