/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/treeshape.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-06-05 14:25:10 UTC
  • mfrom: (6654.1.1 index_prefix_dedupe)
  • Revision ID: breezy.the.bot@gmail.com-20170605142510-v8g9z86d4yw78fvm
Add index._iter_entries_prefix helper to remove copied code

Merged from https://code.launchpad.net/~gz/brz/index_prefix_dedupe/+merge/325052

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
30
30
import os
31
31
import stat
32
32
 
33
 
from bzrlib.trace import warning
34
 
from bzrlib.osutils import pathjoin
 
33
from ..trace import warning
 
34
from ..osutils import pathjoin
35
35
 
36
36
def build_tree_contents(template):
37
37
    """Reconstitute some files from a text description.
51
51
        if name[-1] == '/':
52
52
            os.mkdir(name)
53
53
        elif name[-1] == '@':
54
 
            raise NotImplementedError('symlinks not handled yet')
 
54
            os.symlink(tt[1], tt[0][:-1])
55
55
        else:
56
56
            f = file(name, 'wb')
57
57
            try: