1
# -*- coding: utf-8 -*-
2
# Copyright 2010 Didier Roche
4
# This file is part of Quickly ubuntu-application template
6
#This program is free software: you can redistribute it and/or modify it
7
#under the terms of the GNU General Public License version 3, as published
8
#by the Free Software Foundation.
10
#This program is distributed in the hope that it will be useful, but
11
#WITHOUT ANY WARRANTY; without even the implied warranties of
12
#MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
13
#PURPOSE. See the GNU General Public License for more details.
15
#You should have received a copy of the GNU General Public License along
16
#with this program. If not, see <http://www.gnu.org/licenses/>.
18
from quickly import configurationhandler
20
def set_bzrbranch(bzr_branch):
21
'''set default bzr branch from where to pull and push'''
23
if not configurationhandler.project_config:
24
configurationhandler.loadConfig()
25
configurationhandler.project_config['bzrbranch'] = bzr_branch
28
'''get default bzr branch from where to pull and push'''
30
if not configurationhandler.project_config:
31
configurationhandler.loadConfig()
34
bzr_branch = configurationhandler.project_config['bzrbranch']