~launchpad-pqm/bzr-svn/devel

« back to all changes in this revision

Viewing changes to fetch.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-02-01 22:22:18 UTC
  • mfrom: (2722.1.1 lp-pqm)
  • Revision ID: launchpad@pqm.canonical.com-20120201222218-sqio0a5sc335w294
[rs=jelmer] Update to r4162.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
        self.actual = actual
193
193
 
194
194
    def open_directory(self, path, base_revnum):
195
 
        """See `DirectoryEditor`."""
 
195
        """See ``DirectoryEditor``."""
196
196
        if path.strip("/") == self.editor.prefix:
197
197
            t = self.editor.actual.open_root(base_revnum)
198
198
        elif self.actual is not None:
203
203
        return PathStrippingDirectoryEditor(self.editor, path, t)
204
204
 
205
205
    def add_directory(self, path, copyfrom_path=None, copyfrom_rev=-1):
206
 
        """See `DirectoryEditor`."""
 
206
        """See ``DirectoryEditor``."""
207
207
        if path.strip("/") == self.editor.prefix:
208
208
            t = self.editor.actual.open_root(copyfrom_rev)
209
209
        elif self.actual is not None:
214
214
        return PathStrippingDirectoryEditor(self.editor, path, t)
215
215
 
216
216
    def close(self):
217
 
        """See `DirectoryEditor`."""
 
217
        """See ``DirectoryEditor``."""
218
218
        if self.actual is not None:
219
219
            self.actual.close()
220
220
 
221
221
    def change_prop(self, name, value):
222
 
        """See `DirectoryEditor`."""
 
222
        """See ``DirectoryEditor``."""
223
223
        if self.actual is not None:
224
224
            self.actual.change_prop(name, value)
225
225
 
226
226
    def delete_entry(self, path, revnum):
227
 
        """See `DirectoryEditor`."""
 
227
        """See ``DirectoryEditor``."""
228
228
        if self.actual is not None:
229
229
            self.actual.delete_entry(self.editor.strip_prefix(path), revnum)
230
230
        else:
231
231
            raise AssertionError("delete_entry should not be called")
232
232
 
233
233
    def add_file(self, path, copyfrom_path=None, copyfrom_rev=-1):
234
 
        """See `DirectoryEditor`."""
 
234
        """See ``DirectoryEditor``."""
235
235
        if self.actual is not None:
236
236
            return self.actual.add_file(self.editor.strip_prefix(path),
237
237
                self.editor.strip_copy_prefix(copyfrom_path), copyfrom_rev)
238
238
        raise AssertionError("add_file should not be called")
239
239
 
240
240
    def open_file(self, path, base_revnum):
241
 
        """See `DirectoryEditor`."""
 
241
        """See ``DirectoryEditor``."""
242
242
        if self.actual is not None:
243
243
            return self.actual.open_file(self.editor.strip_prefix(path),
244
244
                   base_revnum)