Show More
@@ -905,11 +905,14 b' def getdiffmeta(diff):' | |||||
905 | meta = props.get(b'hg:meta') |
|
905 | meta = props.get(b'hg:meta') | |
906 | if not meta and props.get(b'local:commits'): |
|
906 | if not meta and props.get(b'local:commits'): | |
907 | commit = sorted(props[b'local:commits'].values())[0] |
|
907 | commit = sorted(props[b'local:commits'].values())[0] | |
908 | meta = { |
|
908 | meta = {} | |
909 | b'date': b'%d 0' % commit[b'time'], |
|
909 | if b'author' in commit and b'authorEmail' in commit: | |
910 |
b' |
|
910 | meta[b'user'] = b'%s <%s>' % (commit[b'author'], | |
911 | b'user': b'%s <%s>' % (commit[b'author'], commit[b'authorEmail']), |
|
911 | commit[b'authorEmail']) | |
912 | } |
|
912 | if b'time' in commit: | |
|
913 | meta[b'date'] = b'%d 0' % commit[b'time'] | |||
|
914 | if b'rev' in commit: | |||
|
915 | meta[b'node'] = commit[b'rev'] | |||
913 | if len(commit.get(b'parents', ())) >= 1: |
|
916 | if len(commit.get(b'parents', ())) >= 1: | |
914 | meta[b'parent'] = commit[b'parents'][0] |
|
917 | meta[b'parent'] = commit[b'parents'][0] | |
915 | return meta or {} |
|
918 | return meta or {} |
General Comments 0
You need to be logged in to leave comments.
Login now