tests/test-symlinks.t
branchstable
changeset 16350 4f795f5fbb0b
parent 15797 c7a8164c61ab
child 16913 f2719b387380
equal deleted inserted replaced
16349:425f1fbcfb94 16350:4f795f5fbb0b
   193   add symlink
   193   add symlink
   194   
   194   
   195   
   195   
   196   $ hg manifest --debug
   196   $ hg manifest --debug
   197   2564acbe54bbbedfbf608479340b359f04597f80 644 @ dangling
   197   2564acbe54bbbedfbf608479340b359f04597f80 644 @ dangling
   198   $ $TESTDIR/readlink.py dangling
   198   $ "$TESTDIR/readlink.py" dangling
   199   dangling -> nothing
   199   dangling -> nothing
   200 
   200 
   201   $ rm dangling
   201   $ rm dangling
   202   $ ln -s void dangling
   202   $ ln -s void dangling
   203   $ hg commit -m 'change symlink'
   203   $ hg commit -m 'change symlink'
   204   $ $TESTDIR/readlink.py dangling
   204   $ "$TESTDIR/readlink.py" dangling
   205   dangling -> void
   205   dangling -> void
   206 
   206 
   207 
   207 
   208 modifying link
   208 modifying link
   209 
   209 
   210   $ rm dangling
   210   $ rm dangling
   211   $ ln -s empty dangling
   211   $ ln -s empty dangling
   212   $ $TESTDIR/readlink.py dangling
   212   $ "$TESTDIR/readlink.py" dangling
   213   dangling -> empty
   213   dangling -> empty
   214 
   214 
   215 
   215 
   216 reverting to rev 0:
   216 reverting to rev 0:
   217 
   217 
   218   $ hg revert -r 0 -a
   218   $ hg revert -r 0 -a
   219   reverting dangling
   219   reverting dangling
   220   $ $TESTDIR/readlink.py dangling
   220   $ "$TESTDIR/readlink.py" dangling
   221   dangling -> nothing
   221   dangling -> nothing
   222 
   222 
   223 
   223 
   224 backups:
   224 backups:
   225 
   225 
   226   $ $TESTDIR/readlink.py *.orig
   226   $ "$TESTDIR/readlink.py" *.orig
   227   dangling.orig -> empty
   227   dangling.orig -> empty
   228   $ rm *.orig
   228   $ rm *.orig
   229   $ hg up -C
   229   $ hg up -C
   230   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   230   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   231 
   231 
   234   $ hg cp -v dangling dangling2
   234   $ hg cp -v dangling dangling2
   235   copying dangling to dangling2
   235   copying dangling to dangling2
   236   $ hg st -Cmard
   236   $ hg st -Cmard
   237   A dangling2
   237   A dangling2
   238     dangling
   238     dangling
   239   $ $TESTDIR/readlink.py dangling dangling2
   239   $ "$TESTDIR/readlink.py" dangling dangling2
   240   dangling -> void
   240   dangling -> void
   241   dangling2 -> void
   241   dangling2 -> void
   242 
   242 
   243 
   243 
   244 Issue995: hg copy -A incorrectly handles symbolic links
   244 Issue995: hg copy -A incorrectly handles symbolic links