hgext/graphlog.py
changeset 14082 176b3abb5b8b
parent 14081 8670e3694b85
child 14083 2520ebfd9f5c
--- a/hgext/graphlog.py	Sat Apr 30 19:42:00 2011 +0200
+++ b/hgext/graphlog.py	Sat Apr 30 19:42:00 2011 +0200
@@ -223,20 +223,22 @@
 def revset(pats, opts):
     """Return revset str built of revisions, log options and file patterns.
     """
-    opt2revset = dict(only_merges='merge',
+    opt2revset = dict(only_merges='merge()',
                       only_branch='branch',
-                      no_merges='not merge',
+                      no_merges='not merge()',
                       include='file',
                       exclude='not file',
-                      prune='not follow')
+                      prune='not follow',
+                      follow='follow()',
+                      removed='removes("*")')
     revset = []
     for op, val in opts.iteritems():
         if not val:
             continue
         revop = opt2revset.get(op, op)
-        if op in ('follow', 'only_merges', 'no_merges'):
-            revset.append('%s()' % revop)
-        elif op in ('date', 'remove'):
+        if op in ('follow', 'only_merges', 'no_merges', 'removed'):
+            revset.append('%s' % revop)
+        elif op in ('date',):
             revset.append('%s(%s)' % (revop, val))
         elif op in ('include', 'exclude', 'user', 'branch', 'keyword',
                     'prune', 'only_branch'):