hgext/graphlog.py
changeset 14081 8670e3694b85
parent 14043 1c1e1232abdc
child 14082 176b3abb5b8b
--- a/hgext/graphlog.py	Sat Apr 30 18:53:56 2011 +0200
+++ b/hgext/graphlog.py	Sat Apr 30 19:42:00 2011 +0200
@@ -236,12 +236,12 @@
         revop = opt2revset.get(op, op)
         if op in ('follow', 'only_merges', 'no_merges'):
             revset.append('%s()' % revop)
-        elif op in ("date", "keyword", "remove", "user", "branch",
-                    "only_branch", "prune"):
-            revset.append('%s(%s)' % (op, val))
-        elif op in ('include', 'exclude'):
+        elif op in ('date', 'remove'):
+            revset.append('%s(%s)' % (revop, val))
+        elif op in ('include', 'exclude', 'user', 'branch', 'keyword',
+                    'prune', 'only_branch'):
             for f in val:
-                revset.append('%s(%r)' % (op, f))
+                revset.append('%s(%r)' % (revop, f))
         elif op == 'rev':
             revset.extend(val)