hgkw/keyword.py
branchkwmap-templates
changeset 174 c5f655d5d8b4
parent 173 5329863fb64e
child 175 f8e5cafa7b99
equal deleted inserted replaced
173:5329863fb64e 174:c5f655d5d8b4
   202         return super(kwfilelog, self).add(text, meta, tr, link, p1=p1, p2=p2)
   202         return super(kwfilelog, self).add(text, meta, tr, link, p1=p1, p2=p2)
   203 
   203 
   204     def cmp(self, node, text):
   204     def cmp(self, node, text):
   205         '''Removes keyword substitutions for comparison.'''
   205         '''Removes keyword substitutions for comparison.'''
   206         text = self.kwtemplater.shrink(text)
   206         text = self.kwtemplater.shrink(text)
       
   207         if self.renamed(node):
       
   208             t2 = super(kwfilelog, self).read(node)
       
   209             return t2 != text
   207         return super(kwfilelog, self).cmp(node, text)
   210         return super(kwfilelog, self).cmp(node, text)
   208 
   211 
   209 
   212 
   210 def reposetup(ui, repo):
   213 def reposetup(ui, repo):
   211     '''Sets up repo as kwrepo for keyword substitution.
   214     '''Sets up repo as kwrepo for keyword substitution.