grim/local-pipelines

vcs: add slug property to hg backend

2016-07-28, Sean Farley
25fff1c9e141
Parents a1793fcfad54
Children c89739bfcd47
vcs: add slug property to hg backend
--- a/pipelines/vcs.py Thu Jul 28 01:00:54 2016 -0700
+++ b/pipelines/vcs.py Thu Jul 28 01:01:07 2016 -0700
@@ -92,6 +92,10 @@
def owner(self):
return self._owner_repo[0]
+ @property
+ def slug(self):
+ return '/'.join(self._owner_repo)
+
class repo(object):
def __init__(self, search_path):