Show More
@@ -337,3 +337,10 b' class changelog(revlog.revlog):' | |||||
337 | l = [hex(manifest), user, parseddate] + sorted(files) + ["", desc] |
|
337 | l = [hex(manifest), user, parseddate] + sorted(files) + ["", desc] | |
338 | text = "\n".join(l) |
|
338 | text = "\n".join(l) | |
339 | return self.addrevision(text, transaction, len(self), p1, p2) |
|
339 | return self.addrevision(text, transaction, len(self), p1, p2) | |
|
340 | ||||
|
341 | def branch(self, rev): | |||
|
342 | """return the branch of a revision | |||
|
343 | ||||
|
344 | This function exists because creating a changectx object | |||
|
345 | just to access this is costly.""" | |||
|
346 | return encoding.tolocal(self.read(rev)[5].get("branch")) |
General Comments 0
You need to be logged in to leave comments.
Login now