bzr branch
http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
1 |
# Copyright (C) 2006 by Szilveszter Farkas (Phanatic)
|
2 |
# Some parts of the code are:
|
|
3 |
# Copyright (C) 2005, 2006 by Canonical Ltd
|
|
4 |
||
5 |
# This program is free software; you can redistribute it and/or modify
|
|
6 |
# it under the terms of the GNU General Public License as published by
|
|
7 |
# the Free Software Foundation; either version 2 of the License, or
|
|
8 |
# (at your option) any later version.
|
|
9 |
||
10 |
# This program is distributed in the hope that it will be useful,
|
|
11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
# GNU General Public License for more details.
|
|
14 |
||
15 |
# You should have received a copy of the GNU General Public License
|
|
16 |
# along with this program; if not, write to the Free Software
|
|
17 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
18 |
||
19 |
class OliveError(Exception): |
|
20 |
""" Parent class for Olive exceptions/errors """ |
|
21 |
pass
|
|
22 |
||
23 |
class AlreadyBranchError(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
24 |
""" The specified directory is already a branch |
25 |
|
|
26 |
May occur in:
|
|
27 |
init.init()
|
|
28 |
"""
|
|
29 |
||
30 |
class BoundBranchOutOfDate(OliveError): |
|
31 |
""" Occurs if the bound branch is out of date |
|
32 |
|
|
33 |
May occur in:
|
|
34 |
commit.commit()
|
|
35 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
36 |
|
37 |
class BranchExistsWithoutWorkingTree(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
38 |
""" The specified directory is a branch, however it doesn't contain a working tree |
39 |
|
|
40 |
May occur in:
|
|
41 |
init.init()
|
|
42 |
"""
|
|
43 |
||
44 |
class ConflictsInTreeError(OliveError): |
|
45 |
""" Occurs if non-resolved conflicts remained in the tree |
|
46 |
|
|
47 |
May occur in:
|
|
48 |
commit.commit()
|
|
49 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
50 |
|
51 |
class DirectoryAlreadyExists(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
52 |
""" The specified directory already exists |
53 |
|
|
54 |
May occur in:
|
|
55 |
fileops.mkdir()
|
|
56 |
"""
|
|
57 |
||
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
58 |
class DivergedBranchesError(OliveError): |
59 |
""" The branches have been diverged |
|
60 |
|
|
61 |
May occur in:
|
|
62 |
commit.push()
|
|
63 |
"""
|
|
64 |
||
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
65 |
class EmptyMessageError(OliveError): |
66 |
""" Occurs if no commit message specified |
|
67 |
|
|
68 |
May occur in:
|
|
69 |
commit.commit()
|
|
70 |
"""
|
|
71 |
||
72 |
class LocalRequiresBoundBranch(OliveError): |
|
73 |
""" Occurs when the local branch needs a bound branch |
|
74 |
|
|
75 |
May occur in:
|
|
76 |
commit.commit()
|
|
77 |
"""
|
|
78 |
||
79 |
class NoChangesToCommitError(OliveError): |
|
80 |
""" Occurs if there are no changes to commit |
|
81 |
|
|
82 |
May occur in:
|
|
83 |
commit.commit()
|
|
84 |
"""
|
|
85 |
||
86 |
class NoFilesSpecified(OliveError): |
|
87 |
""" No files were specified as an argument to a function |
|
88 |
|
|
89 |
May occur in:
|
|
90 |
fileops.remove()
|
|
91 |
"""
|
|
92 |
||
93 |
class NoMatchingFiles(OliveError): |
|
94 |
""" No files found which could match the criteria |
|
95 |
|
|
96 |
May occur in:
|
|
97 |
fileops.remove()
|
|
98 |
"""
|
|
99 |
||
100 |
class NoMessageNoFileError(OliveError): |
|
101 |
""" No message and no file given (for commit) |
|
102 |
|
|
103 |
May occur in:
|
|
104 |
commit.commit()
|
|
105 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
106 |
|
107 |
class NonExistingParent(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
108 |
""" Parent directory doesn't exist |
109 |
|
|
110 |
May occur in:
|
|
111 |
init.branch()
|
|
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
112 |
init.checkout()
|
113 |
commit.push()
|
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
114 |
"""
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
115 |
|
116 |
class NonExistingRevision(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
117 |
""" The specified revision doesn't exist in the branch |
118 |
|
|
119 |
May occur in:
|
|
120 |
init.branch()
|
|
121 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
122 |
|
123 |
class NonExistingSource(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
124 |
""" The source provided doesn't exist |
125 |
|
|
126 |
May occur in:
|
|
127 |
init.branch()
|
|
128 |
"""
|
|
129 |
||
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
130 |
class NoPushLocationKnown(OliveError): |
131 |
""" No push location known or specified |
|
132 |
|
|
133 |
May occur in:
|
|
134 |
commit.push()
|
|
135 |
"""
|
|
136 |
||
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
137 |
class NotBranchError(OliveError): |
138 |
""" Specified directory is not a branch |
|
139 |
|
|
140 |
May occur in:
|
|
141 |
commit.commit()
|
|
142 |
"""
|
|
143 |
||
144 |
class NotVersionedError(OliveError): |
|
145 |
""" Occurs if the specified file/directory is not in the branch |
|
146 |
|
|
147 |
May occur in:
|
|
148 |
fileops.remove()
|
|
149 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
150 |
|
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
151 |
class PathPrefixNotCreated(OliveError): |
152 |
""" The path prefix couldn't be created |
|
153 |
|
|
154 |
May occur in:
|
|
155 |
commit.push()
|
|
156 |
"""
|
|
157 |
||
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
158 |
class RevisionValueError(OliveError): |
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
159 |
""" Invalid revision value provided |
160 |
|
|
161 |
May occur in:
|
|
162 |
"""
|
|
163 |
||
164 |
class StrictCommitError(OliveError): |
|
165 |
""" Occurs if strict commit fails |
|
166 |
|
|
167 |
May occur in:
|
|
168 |
commit.commit()
|
|
169 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
170 |
|
171 |
class TargetAlreadyExists(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
172 |
""" Target directory already exists |
173 |
|
|
174 |
May occur in:
|
|
175 |
init.branch()
|
|
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
176 |
init.checkout()
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
177 |
"""
|