revert: don't let repo.status walk the whole working dir
Problem diagnosed by pmezard.
Set bundle.mainreporoot only after checking that it's a local repo
Fixes
issue977.
Fix test-hgweb-commands.out after
9b817c0a82f1
Define tla username locally in baz and tla tests
Suggested by Alexis S. L. Carvalho.
convert: fix --datesort ordering
Two branches a and b starting at root, with commits interleaved like:
root a0 a1 b0 a2 a3 b1
were converted in the following order:
root a0 b0 a1 b1 a2 a3
Replace depth based toposort with a more classic traversal method.
[RFC] convert: fix --datesort
The problem is that previously commit.date was used for sorting, but it's a
string like "1 Jan xxx 2007", so it it wrong to use it for sorting.
Another problem is that why we are using depth for sorting -- I have no clear
answer -- it seems to be plain wrong.
This patch is just an RFC.