Project

General

Profile

Actions

Bug #1074

closed

undo + mv => unexpected

Added by thomas.nikolajsen over 16 years ago. Updated about 16 years ago.

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

Also available in: Atom PDF