Mercurial > hg
diff tests/test-convert-svn-branches @ 6439:c1b47c0fd2b6
convert: fix test-convert-svn-* problems with mtime not changing
The `svn commit` command does not detect changed files unless
their mtime has changed. A quick succession of, for instance,
`svn co ...; echo x >> y; svn ci` can thus lead to the change to y
being ignored.
Edited by pmezard to write in binary mode.
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Tue, 01 Apr 2008 09:17:11 +0200 |
parents | 866aa7ae2612 |
children | 2bdd43246c95 |
line wrap: on
line diff
--- a/tests/test-convert-svn-branches Tue Apr 01 08:33:17 2008 +0200 +++ b/tests/test-convert-svn-branches Tue Apr 01 09:17:11 2008 +0200 @@ -48,25 +48,25 @@ svn up echo % update trunk -echo "what can I say ?" >> trunk/letter.txt +"$TESTDIR/svn-safe-append.py" "what can I say ?" trunk/letter.txt svn ci -m "change letter" echo % update old branch -echo "what's up ?" >> branches/old/letter2.txt +"$TESTDIR/svn-safe-append.py" "what's up ?" branches/old/letter2.txt svn ci -m "change letter2" echo % create a cross-branch revision svn move -m "move letter2" trunk/letter2.txt \ branches/old/letter3.txt -echo "I am fine" >> branches/old/letter3.txt +"$TESTDIR/svn-safe-append.py" "I am fine" branches/old/letter3.txt svn ci -m "move and update letter3.txt" echo % update old branch again -echo "bye" >> branches/old/letter2.txt +"$TESTDIR/svn-safe-append.py" "bye" branches/old/letter2.txt svn ci -m "change letter2 again" echo % update trunk again -echo "how are you ?" >> trunk/letter.txt +"$TESTDIR/svn-safe-append.py" "how are you ?" trunk/letter.txt svn ci -m "last change to letter" cd ..