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

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 22, 2013, 3:12 p.m.
Message ID <db2d5658d6dc5322aea4.1377184343@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2252/
State Superseded
Commit d45010687268044ecd091c22b286fb5acfe0ecff
Headers show

Comments

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

Patch

diff -r a04b5c662331 -r db2d5658d6dc 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 a04b5c662331 -r db2d5658d6dc 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