tests/test-symlink-addremove.t
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 12 Aug 2010 23:00:36 +0900
changeset 11810 8c01fc10cb67
parent 11809 97b391bb6379
permissions -rw-r--r--
tests: unify test-symlink-basic
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11809
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
     1
  $ "$TESTDIR/hghave" symlink || exit 80
6651
7f0dd352fb4d addremove: correctly handle intermediate symlinks
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
     2
11809
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
     3
  $ hg init a
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
     4
  $ cd a
6651
7f0dd352fb4d addremove: correctly handle intermediate symlinks
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
     5
11809
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
     6
directory moved and symlinked
6651
7f0dd352fb4d addremove: correctly handle intermediate symlinks
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
     7
11809
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
     8
  $ mkdir foo
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
     9
  $ touch foo/a
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    10
  $ hg ci -Ama
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    11
  adding foo/a
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    12
  $ mv foo bar
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    13
  $ ln -s bar foo
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    14
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    15
now addremove should remove old files
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    16
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    17
  $ hg addremove
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    18
  adding bar/a
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    19
  adding foo
97b391bb6379 tests: unify test-symlink-addremove
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 6651
diff changeset
    20
  removing foo/a