Show More
@@ -24,6 +24,7 b' from mercurial import (' | |||||
24 | bookmarks, |
|
24 | bookmarks, | |
25 | cmdutil, |
|
25 | cmdutil, | |
26 | dispatch, |
|
26 | dispatch, | |
|
27 | encoding, | |||
27 | error, |
|
28 | error, | |
28 | extensions, |
|
29 | extensions, | |
29 | hg, |
|
30 | hg, | |
@@ -219,8 +220,8 b' class journalentry(collections.namedtupl' | |||||
219 | (timestamp, tz), user, command, namespace, name, |
|
220 | (timestamp, tz), user, command, namespace, name, | |
220 | oldhashes, newhashes) |
|
221 | oldhashes, newhashes) | |
221 |
|
222 | |||
222 |
def __ |
|
223 | def __bytes__(self): | |
223 |
""" |
|
224 | """bytes representation for storage""" | |
224 | time = ' '.join(map(str, self.timestamp)) |
|
225 | time = ' '.join(map(str, self.timestamp)) | |
225 | oldhashes = ','.join([node.hex(hash) for hash in self.oldhashes]) |
|
226 | oldhashes = ','.join([node.hex(hash) for hash in self.oldhashes]) | |
226 | newhashes = ','.join([node.hex(hash) for hash in self.newhashes]) |
|
227 | newhashes = ','.join([node.hex(hash) for hash in self.newhashes]) | |
@@ -228,6 +229,8 b' class journalentry(collections.namedtupl' | |||||
228 | time, self.user, self.command, self.namespace, self.name, |
|
229 | time, self.user, self.command, self.namespace, self.name, | |
229 | oldhashes, newhashes)) |
|
230 | oldhashes, newhashes)) | |
230 |
|
231 | |||
|
232 | __str__ = encoding.strmethod(__bytes__) | |||
|
233 | ||||
231 | class journalstorage(object): |
|
234 | class journalstorage(object): | |
232 | """Storage for journal entries |
|
235 | """Storage for journal entries | |
233 |
|
236 |
General Comments 0
You need to be logged in to leave comments.
Login now