/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:
33
33
        self.filecontents = (
34
34
            'some\nmultiline\ndata\n'
35
35
            'with<htmlspecialchars\n')
36
 
        filenames = ['myfilename', 'anotherfile<', 'folder/', 'folder/myfilename']
 
36
        filenames = ['myfilename', 'anotherfile<']
37
37
        self.testcase.build_tree_contents(
38
38
            (filename, self.filecontents) for filename in filenames)
39
39
        self.tree.add(filenames)
40
40
        self.path = 'myfilename'
41
41
        self.msg = 'a very exciting commit message <'
42
 
        self.revid = self.tree.commit(message=self.msg, rev_id=b'rev-1')
 
42
        self.revid = self.tree.commit(message=self.msg)