changeset 3214:9fe2b3fd7fc7

obslog: add initial support for showing note in obslog This add a very basic and initial support for showing the note stored in the obsmarker in obslog to test the upcoming changes which adds support. The UI is not finalised and will be improved in the patches after support is added and we have tests with the current output.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 12 Nov 2017 01:35:51 +0530
parents 7bc587557e4f
children 175b524b9a2b
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py	Sun Nov 12 01:26:30 2017 +0530
+++ b/hgext3rd/evolve/obshistory.py	Sun Nov 12 01:35:51 2017 +0530
@@ -499,6 +499,11 @@
     fm.write('date', '(%s)', fm.formatdate(date),
              label="evolve.date")
 
+    # initial support for showing note
+    if metadata.get('note'):
+        fm.plain('\n    note: ')
+        fm.write('note', "'%s'", metadata['note'], label="evolve.note")
+
     # Patch display
     if opts.get('patch'):
         _patchavailable = patchavailable(node, repo, marker)