# # # patch "TODO" # from [4048528e8752d45e3cff0f1833e6d05f03f4725d] # to [49091bf048c27f3e3b7b507f930d803c91a71fa0] # # patch "headofbranch.psp" # from [ee04b9ba0f293ad5058c65e065c411b48d5a9af6] # to [7be2770cfdf0a0c364d0d9e3f38a0f7e0d7ebe63] # # patch "monotone.py" # from [f0be3cccea21a81d51ff8212aaea781b6316c550] # to [3736a9cae8e5e475d54dc1aca8ecacdc10cd1ae3] # ============================================================ --- TODO 4048528e8752d45e3cff0f1833e6d05f03f4725d +++ TODO 49091bf048c27f3e3b7b507f930d803c91a71fa0 @@ -11,8 +11,6 @@ future information. Perhaps cache based on the mtime of the db viewmtn is looking at? Might be good enough. - * headofbranch; show certs in list of heads. - * Show information when mousing over long hex strings. Also, it might be more readable if the hex strings are in [ ] as they tend to merge together when looking at them. This is how MT presents the data a lot @@ -20,10 +18,6 @@ * When hovering over nodes in the ancestry graph, display the ChangeLog. - * Show the version of viewmtn (rev + release) on each page, so that - it's easier to figure out what people are running when helping them - with problems. - * Colour diffs (files are already done) * file viewer; treat merges as a special case and show the side which ============================================================ --- headofbranch.psp ee04b9ba0f293ad5058c65e065c411b48d5a9af6 +++ headofbranch.psp 7be2770cfdf0a0c364d0d9e3f38a0f7e0d7ebe63 @@ -35,10 +35,21 @@

- + <% for id in heads: - req.write('' % (link("revision", id))) + certs = mt.certs(id) + # find the author cert + author = None + for cert in certs: + name, value = None, None + for k, v in cert: + if k == "name": name = v + elif k == "value": value = v + if name == None or value == None: continue + if name =="author": + author = value + req.write('' % (link("revision", id), hq(author or ""))) %>
Head revision
Head revisionRevision author
%s
%s%s
============================================================ --- monotone.py f0be3cccea21a81d51ff8212aaea781b6316c550 +++ monotone.py 3736a9cae8e5e475d54dc1aca8ecacdc10cd1ae3 @@ -362,7 +362,7 @@ self.buffer += data if self.length == None: # we have not yet read a complete header line for this packet - m = packet_header_re.match(data) + m = packet_header_re.match(self.buffer) if m: self.cmdnum, self.error, pstate, self.length = m.groups() self.length = int(self.length)