grim/local-pipelines

Parents c492054ed38b
Children a1793fcfad54
vcs: add _owner_repo helper for returning the default path
--- a/pipelines/vcs.py Thu Jul 28 01:00:10 2016 -0700
+++ b/pipelines/vcs.py Thu Jul 28 01:00:30 2016 -0700
@@ -83,6 +83,11 @@
return run_command('hg log -r . -T {node}',
self._path)
+ @property
+ def _owner_repo(self):
+ return run_command('hg paths default',
+ self._path).split('/')[-2:]
+
class repo(object):
def __init__(self, search_path):