tests/test-rollback
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Thu, 12 Oct 2006 20:45:25 -0300
changeset 3379 8770b4870e22
parent 2227 4f072bb06e89
permissions -rwxr-xr-x
portability fix for test-ssh The __del__ method of sshrepo reads the stderr of the remote process until EOF and prints it. If an exception is raised, this method ends up being called: - on Linux: after the "abort: ..." message is printed - on OS X: before the "abort: ..." message is printed This patch explicitly flushes the stderr of the remote process before raising a RepoError.

#!/bin/sh

mkdir t
cd t
hg init
echo a > a
hg add a
hg commit -m "test" -d "1000000 0"
hg verify
hg parents
hg status
hg rollback
hg verify
hg parents
hg status