changeset 37839:edb28a6d95b7 stable

revset: pass in lookup function to matchany() (issue5879) Silly mistake in f83cb91b052e.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 11 May 2018 20:10:22 +0900
parents 69381a28b456
children 273ea09f6550
files mercurial/revset.py tests/test-hgweb-commands.t
diffstat 2 files changed, 25 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Fri May 11 20:08:30 2018 +0900
+++ b/mercurial/revset.py	Fri May 11 20:10:22 2018 +0900
@@ -2171,7 +2171,7 @@
 
 def match(ui, spec, lookup=None):
     """Create a matcher for a single revision spec"""
-    return matchany(ui, [spec], lookup=None)
+    return matchany(ui, [spec], lookup=lookup)
 
 def matchany(ui, specs, lookup=None, localalias=None):
     """Create a matcher that will include any revisions matching one of the
--- a/tests/test-hgweb-commands.t	Fri May 11 20:08:30 2018 +0900
+++ b/tests/test-hgweb-commands.t	Fri May 11 20:10:22 2018 +0900
@@ -1237,7 +1237,30 @@
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "some-thing%anotherthing"
-  # Mode literal keyword search
+  # Mode revset expression search
+  
+  changeset:   cad8025a2e87f88c06259790adfa15acb4080123
+  revision:    3
+  user:        test
+  date:        Thu, 01 Jan 1970 00:00:00 +0000
+  summary:     branch commit with null character: \x00 (esc)
+  branch:      unstable
+  tag:         tip
+  bookmark:    some-thing
+  
+  changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
+  revision:    2
+  user:        test
+  date:        Thu, 01 Jan 1970 00:00:00 +0000
+  summary:     branch
+  branch:      stable
+  
+  changeset:   a4f92ed23982be056b9852de5dfe873eaac7f0de
+  revision:    1
+  user:        test
+  date:        Thu, 01 Jan 1970 00:00:00 +0000
+  summary:     Added tag 1.0 for changeset 2ef0ac749a14
+  branch:      default