diff mercurial/cmdutil.py @ 23955:8a29897d42d2 stable

log: use rev() to build revset of --follow option from numeric revision startrev can be -1.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 10 Jan 2015 13:14:00 +0900
parents 9994f45ba714
children 6156edaa82aa
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sat Jan 10 12:56:38 2015 +0900
+++ b/mercurial/cmdutil.py	Sat Jan 10 13:14:00 2015 +0900
@@ -1781,7 +1781,8 @@
                 # manifest entry, so use match.files(), not pats.
                 opts[fpats[followfirst]] = list(match.files())
             else:
-                opts[fnopats[followdescendants][followfirst]] = str(startrev)
+                op = fnopats[followdescendants][followfirst]
+                opts[op] = 'rev(%d)' % startrev
         else:
             opts['_patslog'] = list(pats)