~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/weavebench.py

  • Committer: Robert Collins
  • Date: 2005-08-25 01:13:32 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050825011331-6d549d5de7edcec1
two bugfixes to smart_add - do not add paths from nested trees to the parent tree, and do not mutate the user supplied file list

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
            if lines:
52
52
                del lines[randrange(0, len(lines))]
53
53
 
54
 
        rev_id = wf.add("%s" % i, parents, lines)
 
54
        rev_id = wf.add(parents, lines)
55
55
        parents = [rev_id]
56
56
 
57
57
    write_weave(wf, file(WEAVE_NAME, 'wb'))