topic: add a compatibility to access transaction's validator
The attribute was made private in ebbba3ba3f66.
# utility to setup pythonpath to point into the tested repositoryexportSRCDIR=`dirname$TESTDIR`if[-n"$PYTHONPATH"];thenexportHGTEST_ORIG_PYTHONPATH=$PYTHONPATHexportPYTHONPATH=$SRCDIR:$PYTHONPATHelseexportPYTHONPATH=$SRCDIRfi