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
a23b306e
Commit
a23b306e
authored
Jun 28, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop explicit cleanup, should not be needed
parent
53a6ef91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
weblate/trans/models.py
weblate/trans/models.py
+0
-12
No files found.
weblate/trans/models.py
View file @
a23b306e
...
...
@@ -373,7 +373,6 @@ class SubProject(models.Model):
gitrepo
.
git
.
remote
(
'set-url'
,
'origin'
,
'--push'
,
self
.
push
)
# Update
self
.
pull_repo
(
validate
,
gitrepo
)
del
gitrepo
def
configure_branch
(
self
):
...
...
@@ -392,9 +391,6 @@ class SubProject(models.Model):
# switch to correct branch
gitrepo
.
git
.
checkout
(
self
.
branch
)
# force cleanup
del
gitrepo
def
do_update
(
self
,
request
=
None
):
'''
Wrapper for doing repository update and pushing them to translations.
...
...
@@ -456,8 +452,6 @@ class SubProject(models.Model):
if
request
is
not
None
:
messages
.
error
(
request
,
_
(
'Failed to push to remote branch on %s.'
)
%
self
.
__unicode__
())
return
False
finally
:
del
gitrepo
def
commit_pending
(
self
):
'''
...
...
@@ -504,8 +498,6 @@ class SubProject(models.Model):
if
request
is
not
None
:
messages
.
error
(
request
,
_
(
'Failed to merge remote branch into %s.'
)
%
self
.
__unicode__
())
return
False
finally
:
del
gitrepo
def
get_mask_matches
(
self
):
'''
...
...
@@ -529,7 +521,6 @@ class SubProject(models.Model):
filename
,
tree
[
filename
].
hexsha
)
del
gitrepo
def
create_translations
(
self
,
force
=
False
):
'''
...
...
@@ -649,7 +640,6 @@ class SubProject(models.Model):
if
gitrepo
is
None
:
gitrepo
=
self
.
get_repo
()
status
=
gitrepo
.
git
.
log
(
revision
)
del
gitrepo
if
status
==
''
:
# No changes to merge
return
False
...
...
@@ -834,7 +824,6 @@ class Translation(models.Model):
gitrepo
=
self
.
get_repo
()
tree
=
gitrepo
.
tree
()
ret
=
tree
[
self
.
filename
].
hexsha
del
gitrepo
return
ret
def
update_stats
(
self
,
blob_hash
=
None
):
...
...
@@ -950,7 +939,6 @@ class Translation(models.Model):
# so we will sleep a bit an retry
time
.
sleep
(
random
.
random
()
*
2
)
self
.
__git_commit
(
gitrepo
,
author
,
sync
)
del
gitrepo
return
True
def
update_unit
(
self
,
unit
,
request
):
...
...
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