/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 breezy/tests/per_tree/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-04 00:06:29 UTC
  • mfrom: (6851.1.1 more-foreign)
  • Revision ID: jelmer@jelmer.uk-20180204000629-9h8r8kf2s2cw7wb9
Merge lp:~jelmer/brz/more-foreign-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
                            by breezy.osutils.has_symlinks() function.
247
247
 
248
248
        The returned tree has the following inventory:
249
 
            [('', inventory.ROOT_ID),
250
 
             ('0file', '2file'),
251
 
             ('1top-dir', '1top-dir'),
252
 
             (u'2utf\u1234file', u'0utf\u1234file'),
253
 
             ('symlink', 'symlink'),            # only if symlinks arg is True
254
 
             ('1top-dir/0file-in-1topdir', '1file-in-1topdir'),
255
 
             ('1top-dir/1dir-in-1topdir', '0dir-in-1topdir')]
 
249
            ['',
 
250
             '0file',
 
251
             '1top-dir',
 
252
             u'2utf\u1234file',
 
253
             'symlink',            # only if symlinks arg is True
 
254
             '1top-dir/0file-in-1topdir',
 
255
             '1top-dir/1dir-in-1topdir']
256
256
        where each component has the type of its name -
257
257
        i.e. '1file..' is afile.
258
258
 
267
267
            '1top-dir/0file-in-1topdir',
268
268
            '1top-dir/1dir-in-1topdir/'
269
269
            ]
270
 
        ids = [
271
 
            '2file',
272
 
            '1top-dir',
273
 
            u'0utf\u1234file'.encode('utf8'),
274
 
            '1file-in-1topdir',
275
 
            '0dir-in-1topdir'
276
 
            ]
277
270
        self.build_tree(paths)
278
 
        tree.add(paths, ids)
 
271
        tree.add(paths)
279
272
        tt = transform.TreeTransform(tree)
280
273
        if symlinks:
281
274
            root_transaction_id = tt.trans_id_tree_path('')