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
d983ae81
Commit
d983ae81
authored
Nov 14, 2014
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
1773ee96
08df5cd3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+11
-2
weblate/trans/vcs.py
weblate/trans/vcs.py
+2
-3
No files found.
weblate/trans/models/subproject.py
View file @
d983ae81
...
@@ -668,7 +668,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
...
@@ -668,7 +668,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
self
.
repository
.
push
(
self
.
branch
)
self
.
repository
.
push
(
self
.
branch
)
return
True
return
True
except
RepositoryException
as
error
:
except
RepositoryException
as
error
:
self
.
log_error
(
'failed to push on repo
'
)
self
.
log_error
(
'failed to push on repo
: %s'
,
error
)
msg
=
'Error:
\
n
%s'
%
str
(
error
)
msg
=
'Error:
\
n
%s'
%
str
(
error
)
mail_admins
(
mail_admins
(
'failed push on repo %s'
%
self
.
__unicode__
(),
'failed push on repo %s'
%
self
.
__unicode__
(),
...
@@ -1070,6 +1070,15 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
...
@@ -1070,6 +1070,15 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
old
=
SubProject
.
objects
.
get
(
pk
=
self
.
id
)
old
=
SubProject
.
objects
.
get
(
pk
=
self
.
id
)
self
.
check_rename
(
old
)
self
.
check_rename
(
old
)
if
old
.
vcs
!=
self
.
vcs
:
# This could work, but the problem is that before changed
# object is saved the linked repos still see old vcs leading
# to horrible mess. Changing vcs from the manage.py shell
# works fine though.
raise
ValidationError
(
_
(
'Changing version control system is not supported!'
)
)
# Check file format
# Check file format
if
self
.
file_format
not
in
FILE_FORMATS
:
if
self
.
file_format
not
in
FILE_FORMATS
:
raise
ValidationError
(
raise
ValidationError
(
...
@@ -1080,7 +1089,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
...
@@ -1080,7 +1089,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
try
:
try
:
self
.
sync_git_repo
(
True
)
self
.
sync_git_repo
(
True
)
except
RepositoryException
as
exc
:
except
RepositoryException
as
exc
:
raise
ValidationError
(
_
(
'Failed to update
git
: %s'
)
%
exc
)
raise
ValidationError
(
_
(
'Failed to update
repository
: %s'
)
%
exc
)
# Push repo is not used with link
# Push repo is not used with link
if
self
.
is_repo_link
:
if
self
.
is_repo_link
:
...
...
weblate/trans/vcs.py
View file @
d983ae81
...
@@ -605,7 +605,6 @@ class HgRepository(Repository):
...
@@ -605,7 +605,6 @@ class HgRepository(Repository):
'log'
,
'--limit'
,
'1'
,
'--template'
,
'{node}'
,
'--branch'
,
'tip'
'log'
,
'--limit'
,
'1'
,
'--template'
,
'{node}'
,
'--branch'
,
'tip'
]
]
_cmd_update_remote
=
[
'pull'
]
_cmd_update_remote
=
[
'pull'
]
_cmd_push
=
[
'push'
]
name
=
'Mercurial'
name
=
'Mercurial'
req_version
=
'2.8'
req_version
=
'2.8'
...
@@ -744,7 +743,7 @@ class HgRepository(Repository):
...
@@ -744,7 +743,7 @@ class HgRepository(Repository):
commit_email: {email(author)}
commit_email: {email(author)}
commit: {author}
commit: {author}
commitdate: {rfc822date(date)}
commitdate: {rfc822date(date)}
commit: {short(no
t
e)}
commit: {short(no
d
e)}
message:
message:
{desc}
{desc}
'''
'''
...
@@ -878,7 +877,7 @@ class HgRepository(Repository):
...
@@ -878,7 +877,7 @@ class HgRepository(Repository):
Pushes given branch to remote repository.
Pushes given branch to remote repository.
"""
"""
try:
try:
s
uper(HgRepository, self).push(branch
)
s
elf.execute('
push
'
)
except RepositoryException as error:
except RepositoryException as error:
if error.retcode == 1:
if error.retcode == 1:
# No changes found
# No changes found
...
...
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