changeset 11550 | 14e90cc3a296 |
parent 11497 | f5a8d85df06a |
parent 11539 | a463e3c50212 |
child 11670 | 1b3b843e1100 |
--- a/mercurial/revlog.py Fri Jul 02 16:22:59 2010 -0300 +++ b/mercurial/revlog.py Tue Jul 13 22:56:01 2010 +0900 @@ -943,7 +943,10 @@ raise LookupError(id, self.indexfile, _('no match found')) def cmp(self, node, text): - """compare text with a given file revision""" + """compare text with a given file revision + + returns True if text is different than what is stored. + """ p1, p2 = self.parents(node) return hash(text, p1, p2) != node