Commit 3ffd0ac4 authored by Patrick Brückner's avatar Patrick Brückner Committed by Patrick Brückner

Add very basic Gerrit support

parent 63ac6c58
......@@ -606,6 +606,21 @@ class GitRepository(Repository):
return self.execute(['describe', '--always']).strip()
@register_vcs
class GitWithGerritRepository(GitRepository):
name = 'Gerrit'
def push(self, branch):
try:
self.execute(['review'])
except RepositoryException as error:
if error.retcode == 1:
# Nothing to push
return
raise
@register_vcs
class HgRepository(Repository):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment