bzr branch
http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz
0.8.9
by Szilveszter Farkas (Phanatic)
2006-07-08 Szilveszter Farkas <Szilveszter.Farkas@gmail.com> |
1 |
# Copyright (C) 2006 by Szilveszter Farkas (Phanatic) <szilveszter.farkas@gmail.com>
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
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 |
|
0.8.9
by Szilveszter Farkas (Phanatic)
2006-07-08 Szilveszter Farkas <Szilveszter.Farkas@gmail.com> |
51 |
class DifferentBranchesError(OliveError): |
52 |
""" Occurs if the specified files are in different branches |
|
53 |
|
|
54 |
May occur in:
|
|
55 |
info.diff()
|
|
56 |
"""
|
|
57 |
||
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
58 |
class DirectoryAlreadyExists(OliveError): |
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
59 |
""" The specified directory already exists |
60 |
|
|
61 |
May occur in:
|
|
62 |
fileops.mkdir()
|
|
63 |
"""
|
|
64 |
||
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
65 |
class DivergedBranchesError(OliveError): |
66 |
""" The branches have been diverged |
|
67 |
|
|
68 |
May occur in:
|
|
69 |
commit.push()
|
|
70 |
"""
|
|
71 |
||
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
72 |
class EmptyMessageError(OliveError): |
73 |
""" Occurs if no commit message specified |
|
74 |
|
|
75 |
May occur in:
|
|
76 |
commit.commit()
|
|
77 |
"""
|
|
78 |
||
79 |
class LocalRequiresBoundBranch(OliveError): |
|
80 |
""" Occurs when the local branch needs a bound branch |
|
81 |
|
|
82 |
May occur in:
|
|
83 |
commit.commit()
|
|
84 |
"""
|
|
85 |
||
0.8.8
by Szilveszter Farkas (Phanatic)
2006-07-06 Szilveszter Farkas <Szilveszter.Farkas@gmail.com> |
86 |
class MissingArgumentError(OliveError): |
87 |
""" Occurs when not enough parameters are given. |
|
88 |
|
|
89 |
May occur in:
|
|
90 |
fileops.move()
|
|
91 |
"""
|
|
92 |
||
93 |
class MultipleMoveError(OliveError): |
|
94 |
""" Occurs when moving/renaming more than 2 files, but the last argument is not a directory |
|
95 |
|
|
96 |
May occur in:
|
|
97 |
fileops.move()
|
|
98 |
"""
|
|
99 |
||
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
100 |
class NoChangesToCommitError(OliveError): |
101 |
""" Occurs if there are no changes to commit |
|
102 |
|
|
103 |
May occur in:
|
|
104 |
commit.commit()
|
|
105 |
"""
|
|
106 |
||
107 |
class NoFilesSpecified(OliveError): |
|
108 |
""" No files were specified as an argument to a function |
|
109 |
|
|
110 |
May occur in:
|
|
111 |
fileops.remove()
|
|
112 |
"""
|
|
113 |
||
0.8.7
by Szilveszter Farkas (Phanatic)
2006-06-20 Szilveszter Farkas <Szilveszter.Farkas@gmail.com> |
114 |
class NoLocationKnown(OliveError): |
115 |
""" No location known or specified |
|
116 |
|
|
117 |
May occur in:
|
|
118 |
commit.push()
|
|
119 |
init.pull()
|
|
120 |
"""
|
|
121 |
||
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
122 |
class NoMatchingFiles(OliveError): |
123 |
""" No files found which could match the criteria |
|
124 |
|
|
125 |
May occur in:
|
|
126 |
fileops.remove()
|
|
127 |
"""
|
|
128 |
||
129 |
class NoMessageNoFileError(OliveError): |
|
130 |
""" No message and no file given (for commit) |
|
131 |
|
|
132 |
May occur in:
|
|
133 |
commit.commit()
|
|
134 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
135 |
|
136 |
class NonExistingParent(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
137 |
""" Parent directory doesn't exist |
138 |
|
|
139 |
May occur in:
|
|
140 |
init.branch()
|
|
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
141 |
init.checkout()
|
142 |
commit.push()
|
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
143 |
"""
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
144 |
|
145 |
class NonExistingRevision(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
146 |
""" The specified revision doesn't exist in the branch |
147 |
|
|
148 |
May occur in:
|
|
149 |
init.branch()
|
|
150 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
151 |
|
152 |
class NonExistingSource(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
153 |
""" The source provided doesn't exist |
154 |
|
|
155 |
May occur in:
|
|
156 |
init.branch()
|
|
0.8.9
by Szilveszter Farkas (Phanatic)
2006-07-08 Szilveszter Farkas <Szilveszter.Farkas@gmail.com> |
157 |
fileops.rename()
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
158 |
"""
|
159 |
||
160 |
class NotBranchError(OliveError): |
|
161 |
""" Specified directory is not a branch |
|
162 |
|
|
163 |
May occur in:
|
|
164 |
commit.commit()
|
|
165 |
"""
|
|
166 |
||
167 |
class NotVersionedError(OliveError): |
|
168 |
""" Occurs if the specified file/directory is not in the branch |
|
169 |
|
|
170 |
May occur in:
|
|
171 |
fileops.remove()
|
|
172 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
173 |
|
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
174 |
class PathPrefixNotCreated(OliveError): |
175 |
""" The path prefix couldn't be created |
|
176 |
|
|
177 |
May occur in:
|
|
178 |
commit.push()
|
|
179 |
"""
|
|
180 |
||
0.8.9
by Szilveszter Farkas (Phanatic)
2006-07-08 Szilveszter Farkas <Szilveszter.Farkas@gmail.com> |
181 |
class PrefixFormatError(OliveError): |
182 |
""" Occurs if the prefix is badly formatted |
|
183 |
|
|
184 |
May occur in:
|
|
185 |
info.diff()
|
|
186 |
"""
|
|
187 |
||
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
188 |
class RevisionValueError(OliveError): |
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
189 |
""" Invalid revision value provided |
190 |
|
|
191 |
May occur in:
|
|
0.8.9
by Szilveszter Farkas (Phanatic)
2006-07-08 Szilveszter Farkas <Szilveszter.Farkas@gmail.com> |
192 |
info.log()
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
193 |
"""
|
194 |
||
195 |
class StrictCommitError(OliveError): |
|
196 |
""" Occurs if strict commit fails |
|
197 |
|
|
198 |
May occur in:
|
|
199 |
commit.commit()
|
|
200 |
"""
|
|
0.8.1
by Szilveszter Farkas (Phanatic)
* backend/errors.py: some basic exceptions added |
201 |
|
202 |
class TargetAlreadyExists(OliveError): |
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
203 |
""" Target directory already exists |
204 |
|
|
205 |
May occur in:
|
|
206 |
init.branch()
|
|
0.8.3
by Szilveszter Farkas (Phanatic)
* backend/init.py: checkout() implemented - not tested yet |
207 |
init.checkout()
|
0.8.2
by Szilveszter Farkas (Phanatic)
* backend/commit.py: commit() implemented |
208 |
"""
|