Mercurial > hg
diff mercurial/revlog.py @ 11550:14e90cc3a296
merge with stable
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Tue, 13 Jul 2010 22:56:01 +0900 |
parents | f5a8d85df06a a463e3c50212 |
children | 1b3b843e1100 |
line wrap: on
line diff
--- 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