equal
deleted
inserted
replaced
1 $ hg init |
1 $ hg init repo |
|
2 $ cd repo |
2 $ mkdir d1 d1/d11 d2 |
3 $ mkdir d1 d1/d11 d2 |
3 $ echo d1/a > d1/a |
4 $ echo d1/a > d1/a |
4 $ echo d1/ba > d1/ba |
5 $ echo d1/ba > d1/ba |
5 $ echo d1/a1 > d1/d11/a1 |
6 $ echo d1/a1 > d1/d11/a1 |
6 $ echo d1/b > d1/b |
7 $ echo d1/b > d1/b |
611 $ hg rename d1/d11/a1 .hg/foo |
612 $ hg rename d1/d11/a1 .hg/foo |
612 abort: path contains illegal component: .hg/foo |
613 abort: path contains illegal component: .hg/foo |
613 [10] |
614 [10] |
614 $ hg status -C |
615 $ hg status -C |
615 $ hg rename d1/d11/a1 ../foo |
616 $ hg rename d1/d11/a1 ../foo |
616 abort: ../foo not under root '$TESTTMP' |
617 abort: ../foo not under root '$TESTTMP/repo' |
617 [255] |
618 [255] |
618 $ hg status -C |
619 $ hg status -C |
619 |
620 |
620 $ mv d1/d11/a1 .hg/foo |
621 $ mv d1/d11/a1 .hg/foo |
621 $ hg rename --after d1/d11/a1 .hg/foo |
622 $ hg rename --after d1/d11/a1 .hg/foo |
634 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
635 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
635 abort: path contains illegal component: .hg/a1 |
636 abort: path contains illegal component: .hg/a1 |
636 [10] |
637 [10] |
637 $ hg status -C |
638 $ hg status -C |
638 $ hg rename d1/d11/a1 .. |
639 $ hg rename d1/d11/a1 .. |
639 abort: ../a1 not under root '$TESTTMP' |
640 abort: ../a1 not under root '$TESTTMP/repo' |
640 [255] |
641 [255] |
641 $ hg --config extensions.largefiles= rename d1/d11/a1 .. |
642 $ hg --config extensions.largefiles= rename d1/d11/a1 .. |
642 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
643 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
643 abort: ../a1 not under root '$TESTTMP' |
644 abort: ../a1 not under root '$TESTTMP/repo' |
644 [255] |
645 [255] |
645 $ hg status -C |
646 $ hg status -C |
646 |
647 |
647 $ mv d1/d11/a1 .hg |
648 $ mv d1/d11/a1 .hg |
648 $ hg rename --after d1/d11/a1 .hg |
649 $ hg rename --after d1/d11/a1 .hg |
657 $ (cd d1/d11; hg rename ../../d2/b ../../.hg/foo) |
658 $ (cd d1/d11; hg rename ../../d2/b ../../.hg/foo) |
658 abort: path contains illegal component: .hg/foo |
659 abort: path contains illegal component: .hg/foo |
659 [10] |
660 [10] |
660 $ hg status -C |
661 $ hg status -C |
661 $ (cd d1/d11; hg rename ../../d2/b ../../../foo) |
662 $ (cd d1/d11; hg rename ../../d2/b ../../../foo) |
662 abort: ../../../foo not under root '$TESTTMP' |
663 abort: ../../../foo not under root '$TESTTMP/repo' |
663 [255] |
664 [255] |
664 $ hg status -C |
665 $ hg status -C |
665 |
666 |
666 check that stat information such as mtime is preserved on rename - it's unclear |
667 check that stat information such as mtime is preserved on rename - it's unclear |
667 whether the `touch` and `stat` commands are portable, so we mimic them using |
668 whether the `touch` and `stat` commands are portable, so we mimic them using |