Try to pass repo.ui to reposetup hooks
The ui object we received in this function may belong to another repo,
which could be confusing from the hook point of view. Trying to use
the ui object from the newly created repo should avoid this confusion.
#!/usr/bin/env python#import doctestimport mercurial.changelog# test doctest from changelogdoctest.testmod(mercurial.changelog)