Patchwork [3,of,4,V4] raw: show current search mode name at search results

login
register
mail settings
Submitter Alexander Plavin
Date Sept. 11, 2013, 4:54 p.m.
Message ID <e7e7ca867d05d18e2f5a.1378918443@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2424/
State Accepted
Commit d45010687268044ecd091c22b286fb5acfe0ecff
Headers show

Comments

Alexander Plavin - Sept. 11, 2013, 4:54 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1378459856 -14400
#      Fri Sep 06 13:30:56 2013 +0400
# Node ID e7e7ca867d05d18e2f5ae8e71cfab0cf342a88dd
# Parent  36cc93b25ebd00ebfc7fd86dbf6e930f30d3d9c2
raw: show current search mode name at search results

Patch

diff -r 36cc93b25ebd -r e7e7ca867d05 mercurial/templates/raw/search.tmpl
--- a/mercurial/templates/raw/search.tmpl	Fri Sep 06 13:30:56 2013 +0400
+++ b/mercurial/templates/raw/search.tmpl	Fri Sep 06 13:30:56 2013 +0400
@@ -2,5 +2,6 @@ 
 # HG changesets search
 # Node ID {node}
 # Query "{query}"
+# Mode {modedesc}
 
 {entries%changelogentry}
diff -r 36cc93b25ebd -r e7e7ca867d05 tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t	Fri Sep 06 13:30:56 2013 +0400
+++ b/tests/test-hgweb-commands.t	Fri Sep 06 13:30:56 2013 +0400
@@ -550,6 +550,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "tip^"
+  # Mode revset expression search
   
   changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
   revision:    2
@@ -566,6 +567,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "last(all(),2)^"
+  # Mode revset expression search
   
   changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
   revision:    2
@@ -589,6 +591,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "last(all(,2)^"
+  # Mode literal keyword search
   
   
   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=last(al(),2)^&style=raw'
@@ -598,6 +601,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "last(al(),2)^"
+  # Mode literal keyword search
   
   
   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=bookmark(anotherthing)&style=raw'
@@ -607,6 +611,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "bookmark(anotherthing)"
+  # Mode revset expression search
   
   changeset:   2ef0ac749a14e4f57a5a822464a0902c6f7f448f
   revision:    0
@@ -624,6 +629,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "bookmark(abc)"
+  # Mode literal keyword search
   
   
   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=deadbeef:&style=raw'
@@ -633,6 +639,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "deadbeef:"
+  # Mode literal keyword search
   
   
 
@@ -643,6 +650,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "user("test")"
+  # Mode revset expression search
   
   changeset:   cad8025a2e87f88c06259790adfa15acb4080123
   revision:    3
@@ -683,6 +691,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "user("re:test")"
+  # Mode literal keyword search