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 - + @@ -72,7 +72,7 @@ 200 Script output follows - + @@ -80,7 +80,7 @@ 200 Script output follows - + @@ -88,7 +88,7 @@ 200 Script output follows - + @@ -96,7 +96,7 @@ 200 Script output follows - + @@ -104,7 +104,7 @@ 200 Script output follows - + @@ -112,7 +112,7 @@ 200 Script output follows - + @@ -120,7 +120,7 @@ 200 Script output follows - + @@ -128,7 +128,7 @@ 200 Script output follows - + @@ -136,7 +136,7 @@ 200 Script output follows - + @@ -144,7 +144,7 @@ 200 Script output follows - + @@ -152,7 +152,7 @@ 200 Script output follows - + @@ -200,7 +200,7 @@ 200 Script output follows
NameName Description Contact Last change
bt/a unknown Foo Bar <foo.bar@example.com> seconds ago
coll/ab unknown Foo Bar <foo.bar@example.com> seconds ago
coll/a/.hg/patchescoll/a unknown Foo Bar <foo.bar@example.com> seconds ago
coll/bcoll/a/.hg/patches unknown Foo Bar <foo.bar@example.com> seconds ago
coll/ccoll/b unknown Foo Bar <foo.bar@example.com> seconds ago
rcoll/acoll/c unknown Foo Bar <foo.bar@example.com> seconds ago
rcoll/a/.hg/patchesrcoll/a unknown Foo Bar <foo.bar@example.com> seconds ago
rcoll/brcoll/a/.hg/patches unknown Foo Bar <foo.bar@example.com> seconds ago
rcoll/b/drcoll/b unknown Foo Bar <foo.bar@example.com> seconds ago
rcoll/crcoll/b/d unknown Foo Bar <foo.bar@example.com> seconds ago
t/arcoll/c unknown Foo Bar <foo.bar@example.com> seconds ago
- +
NameName Description Contact Last change