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