/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/__init__.py

Merge new dulwich.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    tests,
25
25
    trace,
26
26
    )
27
 
from bzrlib.plugins.git import (
28
 
    errors,
29
 
    )
 
27
from  bzrlib.plugins.git import errors
30
28
 
31
29
TestCase = tests.TestCase
32
30
TestCaseInTempDir = tests.TestCaseInTempDir
121
119
        self._write('\n')
122
120
        return self._counter
123
121
 
124
 
    def set_symlink(self, path, content):
125
 
        """Create or update symlink at a given path."""
126
 
        mark = self._create_blob(content)
127
 
        mode = '120000'
128
 
        self.commit_info.append('M %s :%d %s\n'
129
 
                % (mode, mark, self._encode_path(path)))
130
 
 
131
122
    def set_file(self, path, content, executable):
132
123
        """Create or update content at a given path."""
133
124
        mark = self._create_blob(content)
239
230
        'test_builder',
240
231
        'test_branch',
241
232
        'test_dir',
242
 
        'test_fetch',
243
 
        'test_mapping',
244
233
        'test_repository',
245
 
        'test_shamap',
 
234
        'test_ids',
246
235
        'test_blackbox',
247
236
        ]
248
237
    testmod_names = ['%s.%s' % (__name__, t) for t in testmod_names]