sss: add revision in line output for usage when reading log with
authorSofian Brabez <sbz@6dev.net>
Thu, 1 Feb 2018 18:09:11 +0000 (19:09 +0100)
committersbz <sbz@6dev.net>
Thu, 1 Feb 2018 18:09:11 +0000 (19:09 +0100)
svn log -r <rev> --diff

sss

diff --git a/sss b/sss
index f231974919d3e3e993eca1d3d9ff89335adf93c2..e53feb482b96db2987c7a1f67a967f6d472b934f 100755 (executable)
--- a/sss
+++ b/sss
@@ -83,7 +83,9 @@ def main():
                 shortmsg = commit.find('msg').text.split('\n')[0]
                 out['author'] = author
                 out['shortmsg'] = shortmsg
-                print("{status} {path}\t {shortmsg} | {author}".format(**out))
+                out['rev'] = commit.attrib.get('revision', 'norev')
+                svnmsg = "{status} {path}\t {shortmsg} | {rev} | {author}"
+                print(svnmsg.format(**out))
         except:
             pass