revset: add 'only' to DoS-safe symbols
authorYuya Nishihara <yuya@tcha.org>
Wed, 03 Dec 2014 22:56:42 +0900
changeset 23467 c237499a7fba
parent 23466 d5b1a452cc32
child 23468 ee311681e591
revset: add 'only' to DoS-safe symbols There is no reason to disable it in hgweb because the same query can be written without using 'only()'.
mercurial/revset.py
--- a/mercurial/revset.py	Wed Dec 03 22:52:54 2014 +0900
+++ b/mercurial/revset.py	Wed Dec 03 22:56:42 2014 +0900
@@ -1798,6 +1798,7 @@
     "min",
     "modifies",
     "obsolete",
+    "only",
     "origin",
     "outgoing",
     "p1",