# HG changeset patch # User Matt Mackall # Date 1198821340 21600 # Node ID 9db7fd77417de13b6173097acbcdd50ae7c4f8fb # Parent df09fad0059e81e78b74c52d37bd5ec0d138c2f4 changelog: remove extract function diff -r df09fad0059e -r 9db7fd77417d mercurial/changelog.py --- a/mercurial/changelog.py Thu Dec 27 23:55:40 2007 -0600 +++ b/mercurial/changelog.py Thu Dec 27 23:55:40 2007 -0600 @@ -136,7 +136,7 @@ items = [_string_escape('%s:%s' % (k, d[k])) for k in keys] return "\0".join(items) - def extract(self, text): + def read(self, node): """ format used: nodeid\n : manifest node in ascii @@ -149,6 +149,7 @@ changelog v0 doesn't use extra """ + text = self.revision(node) if not text: return (nullid, "", (0, 0), [], "", {'branch': 'default'}) last = text.index("\n\n") @@ -175,9 +176,6 @@ files = l[3:] return (manifest, user, (time, timezone), files, desc, extra) - def read(self, node): - return self.extract(self.revision(node)) - def add(self, manifest, list, desc, transaction, p1=None, p2=None, user=None, date=None, extra={}):