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

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 16, 2013, 8:06 p.m.
Message ID <71ff24dc3d8d4723ffeb.1376683590@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2191/
State Superseded
Headers show

Comments

Alexander Plavin - Aug. 16, 2013, 8:06 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1376680575 -14400
#      Fri Aug 16 23:16:15 2013 +0400
# Node ID 71ff24dc3d8d4723ffebc68d5ae7ed8f4ac26208
# Parent  22b4e49baccad46757cd2f7ba2ef807e52d36c33
raw: show current search mode name at search results

Patch

diff -r 22b4e49bacca -r 71ff24dc3d8d mercurial/templates/raw/search.tmpl
--- a/mercurial/templates/raw/search.tmpl	Sat Jul 20 21:29:17 2013 +0400
+++ b/mercurial/templates/raw/search.tmpl	Fri Aug 16 23:16:15 2013 +0400
@@ -2,5 +2,6 @@ 
 # HG changesets search
 # Node ID {node}
 # Query "{query}"
+# Mode {modedesc}
 
 {entries%changelogentry}
diff -r 22b4e49bacca -r 71ff24dc3d8d tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t	Sat Jul 20 21:29:17 2013 +0400
+++ b/tests/test-hgweb-commands.t	Fri Aug 16 23:16:15 2013 +0400
@@ -550,6 +550,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "tip^"
+  # Mode revset expression
   
   changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
   revision:    2
@@ -566,6 +567,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "last(all(),2)^"
+  # Mode revset expression
   
   changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
   revision:    2
@@ -589,6 +591,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "last(all(,2)^"
+  # Mode literal keyword
   
   
   $ "$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
   
   
   $ "$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
   
   changeset:   2ef0ac749a14e4f57a5a822464a0902c6f7f448f
   revision:    0
@@ -624,6 +629,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "bookmark(abc)"
+  # Mode literal keyword
   
   
   $ "$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
   
   
 
@@ -643,6 +650,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "user("test")"
+  # Mode revset expression
   
   changeset:   cad8025a2e87f88c06259790adfa15acb4080123
   revision:    3
@@ -683,6 +691,7 @@ 
   # HG changesets search
   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
   # Query "user("re:test")"
+  # Mode literal keyword