mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 22:47:26 +03:00
09de146878
Reviewed By: quark-zju Differential Revision: D19802024 fbshipit-source-id: 714f1a3af7f62c8215310fe95ac4de28f9b10f1d
42 lines
651 B
Perl
42 lines
651 B
Perl
#chg-compatible
|
|
|
|
#require symlink
|
|
|
|
$ newrepo repo
|
|
$ ln -s nothing dangling
|
|
|
|
avoid tar warnings about old timestamp
|
|
|
|
$ hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
|
|
|
|
$ hg archive -t files ../archive
|
|
$ hg archive -t tar -p tar ../archive.tar
|
|
$ hg archive -t zip -p zip ../archive.zip
|
|
|
|
files
|
|
|
|
$ cd "$TESTTMP"
|
|
$ cd archive
|
|
$ readlink.py dangling
|
|
dangling -> nothing
|
|
|
|
tar
|
|
|
|
$ cd "$TESTTMP"
|
|
$ tar xf archive.tar
|
|
$ cd tar
|
|
$ readlink.py dangling
|
|
dangling -> nothing
|
|
|
|
#if unziplinks
|
|
zip
|
|
|
|
$ cd "$TESTTMP"
|
|
$ unzip archive.zip > /dev/null 2>&1
|
|
$ cd zip
|
|
$ readlink.py dangling
|
|
dangling -> nothing
|
|
#endif
|
|
|
|
$ cd ..
|