grim/local-pipelines

vcs: add node property to hg backend

2016-07-28, Sean Farley
c492054ed38b
Parents 57202f1fa154
Children 8090c3352cd3
vcs: add node property to hg backend
--- a/pipelines/vcs.py Thu Jul 28 00:59:54 2016 -0700
+++ b/pipelines/vcs.py Thu Jul 28 01:00:10 2016 -0700
@@ -78,6 +78,11 @@
return run_command('hg log -r . -T {branch}',
self._path)
+ @property
+ def node(self):
+ return run_command('hg log -r . -T {node}',
+ self._path)
+
class repo(object):
def __init__(self, search_path):