Show More
@@ -5,13 +5,10 b'' | |||||
5 | # This software may be used and distributed according to the terms |
|
5 | # This software may be used and distributed according to the terms | |
6 | # of the GNU General Public License, incorporated herein by reference. |
|
6 | # of the GNU General Public License, incorporated herein by reference. | |
7 |
|
7 | |||
8 | from demandload import * |
|
|||
9 | from node import * |
|
8 | from node import * | |
10 | demandload(globals(), 'bdiff') |
|
9 | from i18n import gettext as _ | |
11 |
|
||||
12 | from node import * |
|
|||
13 | from demandload import demandload |
|
10 | from demandload import demandload | |
14 | demandload(globals(), "ancestor util") |
|
11 | demandload(globals(), "ancestor bdiff repo util") | |
15 |
|
12 | |||
16 | class changectx(object): |
|
13 | class changectx(object): | |
17 | """A changecontext object makes access to data related to a particular |
|
14 | """A changecontext object makes access to data related to a particular | |
@@ -83,6 +80,9 b' class changectx(object):' | |||||
83 | """get a file context from this changeset""" |
|
80 | """get a file context from this changeset""" | |
84 | if fileid is None: |
|
81 | if fileid is None: | |
85 | fileid = self.filenode(path) |
|
82 | fileid = self.filenode(path) | |
|
83 | if not fileid: | |||
|
84 | raise repo.LookupError(_("'%s' does not exist in changeset %s") % | |||
|
85 | (path, hex(self.node()))) | |||
86 | return filectx(self._repo, path, fileid=fileid) |
|
86 | return filectx(self._repo, path, fileid=fileid) | |
87 |
|
87 | |||
88 | def filectxs(self): |
|
88 | def filectxs(self): |
General Comments 0
You need to be logged in to leave comments.
Login now