Commits

Patrick Mézard  committed 2520ebf

graphlog: escape log -G single value option arguments

  • Participants
  • Parent commits 176b3ab

Comments (0)

Files changed (2)

File hgext/graphlog.py

         if op in ('follow', 'only_merges', 'no_merges', 'removed'):
             revset.append('%s' % revop)
         elif op in ('date',):
-            revset.append('%s(%s)' % (revop, val))
+            revset.append('%s(%r)' % (revop, val))
         elif op in ('include', 'exclude', 'user', 'branch', 'keyword',
                     'prune', 'only_branch'):
             for f in val:

File tests/test-glog.t

   \s*28 (re)
   $ hg log -G --no-merges --template 'nodetag {rev}\n' | grep nodetag | wc -l
   \s*9 (re)
-
+  $ hg log -G -d 'brace ) in a date'
+  abort: invalid date: 'brace ) in a date'
+  [255]