Mercurial > hg-stable
changeset 23098:675e415568af stable
test-convert-svn-sink: properly isolate symlink section
This was fixed earlier by moving all the symlink bits to a section to
the end of the file, but then it was broken (by the same person) by
adding more tests at the end.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 27 Oct 2014 18:44:05 -0500 |
parents | 30124c40d11f |
children | 6df4bc39f682 |
files | tests/test-convert-svn-sink.t |
diffstat | 1 files changed, 21 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-convert-svn-sink.t Fri Oct 24 11:39:39 2014 -0700 +++ b/tests/test-convert-svn-sink.t Mon Oct 27 18:44:05 2014 -0500 @@ -224,15 +224,21 @@ adding link $ hg --cwd a mv link newlink $ hg --cwd a commit -m 'move symlink' - $ hg convert -d svn a - assuming destination a-hg - initializing svn working copy 'a-hg-wc' + $ hg convert -d svn a a-svnlink + initializing svn repository 'a-svnlink' + initializing svn working copy 'a-svnlink-wc' scanning source... sorting... converting... + 7 add a file + 6 modify a file + 5 rename a file + 4 copy a file + 3 remove a file + 2 make a file executable 1 add symlink 0 move symlink - $ svnupanddisplay a-hg-wc 1 + $ svnupanddisplay a-svnlink-wc 1 8 1 test d1 8 1 test d1/d2 8 1 test d1/d2/b @@ -245,6 +251,13 @@ D /link A /newlink (from /link@7) +Make sure our changes don't affect the rest of the test cases + + $ hg --cwd a up 5 + 0 files updated, 0 files merged, 1 files removed, 0 files unresolved + $ hg --cwd a --config extensions.strip= strip -r 6 + saved backup bundle to $TESTTMP/a/.hg/strip-backup/bd4f7b7a7067-backup.hg + #endif Convert with --full adds and removes files that didn't change @@ -260,17 +273,16 @@ converting... 0 f $ svnupanddisplay a-hg-wc 1 - 9 9 test . - 9 9 test d - 9 9 test f - revision: 9 + 7 7 test . + 7 7 test d + 7 7 test f + revision: 7 author: test msg: f D /c A /d D /d1 A /f - D /newlink $ rm -rf a a-hg a-hg-wc