~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/fixtures.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-21 07:51:22 UTC
  • mfrom: (6034.1.1 filter-tree)
  • Revision ID: pqm@pqm.ubuntu.com-20110721075122-l9d0n4d3pk4p3hfg
(mbp) add ContentFilterTree decorator and use it for cat and export (Martin
 Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    source.set_last_revision_info(1, 'rev-1')
126
126
    return source
127
127
 
 
128
 
 
129
def make_branch_and_populated_tree(testcase):
 
130
    """Make a simple branch and tree.
 
131
 
 
132
    The tree holds some added but uncommitted files.
 
133
    """
 
134
    # TODO: Either accept or return the names of the files, so the caller
 
135
    # doesn't need to be bound to the particular files created? -- mbp
 
136
    # 20110705
 
137
    tree = testcase.make_branch_and_tree('t')
 
138
    testcase.build_tree_contents([('t/hello', 'hello world')])
 
139
    tree.add(['hello'], ['hello-id'])
 
140
    return tree