1
# -*- coding: utf-8 -*-
2
# Copyright 2009 Canonical Ltd.
3
# Author 2009 Didier Roche
5
# This file is part of Quickly ubuntu-project-template
7
#This program is free software: you can redistribute it and/or modify it
8
#under the terms of the GNU General Public License version 3, as published
9
#by the Free Software Foundation.
11
#This program is distributed in the hope that it will be useful, but
12
#WITHOUT ANY WARRANTY; without even the implied warranties of
13
#MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
#PURPOSE. See the GNU General Public License for more details.
16
#You should have received a copy of the GNU General Public License along
17
#with this program. If not, see <http://www.gnu.org/licenses/>.
20
$quickly save notes about changes
21
where "notes about changes" is optional text describing what changes
22
were made since the last save.
24
This command commits all changes since the last save to bzr. Note that
25
it does not push changes to any back up location. If you need revert
26
or otherwise use the revision control, us bzr directly:
34
from gettext import gettext as _
35
gettext.textdomain('quickly')
37
#set either a default message or the specified message
38
commit_msg = " ".join(sys.argv[1:])
40
commit_msg = _('quickly saved')
43
subprocess.call(["bzr", "add"])
44
return_code = subprocess.call(["bzr", "commit", "-m" + commit_msg])
46
print _("It seems that you have no change to record.")