diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py
+++ b/mercurial/hgweb/hgwebdir_mod.py
@@ -89,7 +89,6 @@ class hgwebdir(object):
name = name[len(prefix):]
self.repos.append((name.lstrip('/'), repo))
- self.repos.sort()
self.lastrefresh = time.time()
def run(self):
@@ -196,7 +195,7 @@ class hgwebdir(object):
yield {"type" : i[0], "extension": i[1],
"node": nodeid, "url": url}
- sortdefault = 'name', False
+ sortdefault = None, False
def entries(sortcolumn="", descending=False, subdir="", **map):
rows = []
diff --git a/tests/test-hgwebdir.out b/tests/test-hgwebdir.out
--- a/tests/test-hgwebdir.out
+++ b/tests/test-hgwebdir.out
@@ -29,6 +29,7 @@ error: repository c not found
200 Script output follows
+/t/a/
/b/
/coll/a/
/coll/a/.hg/patches/
@@ -39,7 +40,6 @@ 200 Script output follows
/rcoll/b/
/rcoll/b/d/
/rcoll/c/
-/t/a/
200 Script output follows
@@ -64,7 +64,7 @@ 200 Script output follows
- Name |
+ Name |
Description |
Contact |
Last change |
@@ -72,7 +72,7 @@ 200 Script output follows
-b |
+t/a |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -80,7 +80,7 @@ 200 Script output follows
-coll/a |
+b |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -88,7 +88,7 @@ 200 Script output follows
-coll/a/.hg/patches |
+coll/a |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -96,7 +96,7 @@ 200 Script output follows
-coll/b |
+coll/a/.hg/patches |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -104,7 +104,7 @@ 200 Script output follows
-coll/c |
+coll/b |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -112,7 +112,7 @@ 200 Script output follows
-rcoll/a |
+coll/c |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -120,7 +120,7 @@ 200 Script output follows
-rcoll/a/.hg/patches |
+rcoll/a |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -128,7 +128,7 @@ 200 Script output follows
-rcoll/b |
+rcoll/a/.hg/patches |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -136,7 +136,7 @@ 200 Script output follows
-rcoll/b/d |
+rcoll/b |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -144,7 +144,7 @@ 200 Script output follows
-rcoll/c |
+rcoll/b/d |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -152,7 +152,7 @@ 200 Script output follows
-t/a |
+rcoll/c |
unknown |
Foo Bar <foo.bar@example.com> |
seconds ago |
@@ -200,7 +200,7 @@ 200 Script output follows