/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/tests/fixtures.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2022-08-30 10:28:23 UTC
  • mfrom: (533.1.1 trunk)
  • Revision ID: otto-copilot@canonical.com-20220830102823-u3w6efosxw5s086s
Cope with moved errors NoSuchFile and FileExists in newer versions of Breezy.

Merged from https://code.launchpad.net/~jelmer/loggerhead/moved-errors/+merge/429073

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        filenames = ['myfilename', 'anotherfile<']
37
37
        self.testcase.build_tree_contents(
38
38
            (filename, self.filecontents) for filename in filenames)
39
 
        for filename in filenames:
40
 
            self.tree.add(filename, '%s-id' % filename)
41
 
        self.fileid = self.tree.path2id('myfilename')
 
39
        self.tree.add(filenames)
 
40
        self.path = 'myfilename'
42
41
        self.msg = 'a very exciting commit message <'
43
42
        self.revid = self.tree.commit(message=self.msg)