Add support for merge-friendly branches
[stgit] / stgit / commands / common.py
CommitLineData
388f63b6 1"""Function/variables common to all the commands
fcee87cf
CM
2"""
3
4__copyright__ = """
5Copyright (C) 2005, Catalin Marinas <catalin.marinas@gmail.com>
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License version 2 as
9published by the Free Software Foundation.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19"""
20
cd74a041 21import sys, os, os.path, re, email.Utils
87c93eab 22from stgit.exception import *
fcee87cf 23from stgit.utils import *
5e888f30 24from stgit.out import *
6dd8fafa 25from stgit.run import *
170f576b 26from stgit import stack, git, basedir
d7fade4b 27from stgit.config import config, file_extensions
fe1cee2e 28from stgit.lib import stack as libstack
48c930db 29from stgit.lib import git as libgit
117ed129 30from stgit.lib import log
fcee87cf
CM
31
32# Command exception class
87c93eab 33class CmdException(StgException):
fcee87cf
CM
34 pass
35
fcee87cf 36# Utility functions