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
2ddfc13c
Commit
2ddfc13c
authored
Mar 27, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ef3af63a
6d9a6b1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
docs/management.rst
docs/management.rst
+7
-0
trans/management/commands/commitgit.py
trans/management/commands/commitgit.py
+26
-0
No files found.
docs/management.rst
View file @
2ddfc13c
...
...
@@ -12,6 +12,13 @@ The ./manage.py is extended with following commands:
You can either define which subproject to check (eg. ``weblate/master``) or
use ``--all`` to check all existing subprojects.
.. option:: commitgit
Commits any possible pending changes to backend git repository.
You can either define which subproject to check (eg. ``weblate/master``) or
use ``--all`` to check all existing subprojects.
.. option:: cleanuptrans
Cleanups orphnaed checks and translation suggestions.
...
...
trans/management/commands/commitgit.py
0 → 100644
View file @
2ddfc13c
from
django.core.management.base
import
BaseCommand
,
CommandError
from
trans.models
import
SubProject
from
optparse
import
make_option
class
Command
(
BaseCommand
):
help
=
'forces commiting changes to git repo'
args
=
'<project/subproject>'
option_list
=
BaseCommand
.
option_list
+
(
make_option
(
'--all'
,
action
=
'store_true'
,
dest
=
'all'
,
default
=
False
,
help
=
'Check all projects'
),
)
def
handle
(
self
,
*
args
,
**
options
):
if
options
[
'all'
]:
for
s
in
SubProject
.
objects
.
all
():
s
.
check_commit_needed
()
for
arg
in
args
:
prj
,
subprj
=
arg
.
split
(
'/'
)
s
=
SubProject
.
objects
.
get
(
slug
=
subprj
,
project__slug
=
prj
)
s
.
check_commit_needed
()
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