changeset 10:a0a40cb30265 0.13

#10719: don't use follow mode for file log, for Mercurial version >= 2.1.1
author Christian Boos <cboos@edgewall.org>
date Thu, 14 Jun 2012 11:04:22 +0200
parents 852043605ea2
children c77621b0f6bb
files tracext/hg/backend.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tracext/hg/backend.py	Mon Jun 11 23:29:26 2012 +0200
+++ b/tracext/hg/backend.py	Thu Jun 14 11:04:22 2012 +0200
@@ -1068,7 +1068,7 @@
         if self.str_path:
             pats.append('path:' + self.str_path)
         opts = {'rev': ['%s:0' % self.changectx.hex()]}
-        if self.isfile:
+        if self.isfile and self.repos.version_info < (2, 1, 1):
             opts['follow'] = True
         if arity(cmdutil.walkchangerevs) == 4:
             return self._get_history_1_4(repo, pats, opts, limit)