Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d0adba81
Commit
d0adba81
authored
Feb 18, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #655 from madmuffin1/master
Basic Gerrit Support
parents
63ac6c58
29052a8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
weblate/trans/tests/test_vcs.py
weblate/trans/tests/test_vcs.py
+8
-1
weblate/trans/vcs.py
weblate/trans/vcs.py
+15
-0
No files found.
weblate/trans/tests/test_vcs.py
View file @
d0adba81
...
...
@@ -19,7 +19,8 @@
#
from
weblate.trans.tests.test_models
import
RepoTestCase
from
weblate.trans.vcs
import
GitRepository
,
HgRepository
,
RepositoryException
from
weblate.trans.vcs
import
GitRepository
,
HgRepository
,
\
RepositoryException
,
GitWithGerritRepository
import
tempfile
import
shutil
...
...
@@ -228,6 +229,12 @@ class VCSGitTest(RepoTestCase):
)
class
VCSGerritTest
(
VCSGitTest
):
_class
=
GitWithGerritRepository
_vcs
=
'git'
_branch
=
'master'
class
VCSHgTest
(
VCSGitTest
):
"""
Mercurial repository testing.
...
...
weblate/trans/vcs.py
View file @
d0adba81
...
...
@@ -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
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment