~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-12 03:21:39 UTC
  • mfrom: (1558.12.7 revert-missing)
  • Revision ID: pqm@pqm.ubuntu.com-20060412032139-5508773d6a1cd4ae
Remove debug path printing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical
 
1
# -*- coding: UTF-8 -*-
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
157
157
 
158
158
    specific_files
159
159
        If true, only check for changes to specified names or
160
 
        files within them.  Any unversioned files given have no effect
161
 
        (but this might change in the future).
 
160
        files within them.
162
161
    """
163
162
 
164
163
    old_tree.lock_read()
182
181
    delta = TreeDelta()
183
182
    mutter('start compare_trees')
184
183
 
185
 
    # TODO: Rather than iterating over the whole tree and then filtering, we
186
 
    # could diff just the specified files (if any) and their subtrees.  
187
 
    # Perhaps should take a list of file-ids instead?   Need to indicate any
188
 
    # ids or names which were not found in the trees.
 
184
    # TODO: match for specific files can be rather smarter by finding
 
185
    # the IDs of those files up front and then considering only that.
189
186
 
190
187
    for file_id in old_tree:
191
188
        if file_id in new_tree: