~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.py

  • Committer: Aaron Bentley
  • Date: 2007-12-25 04:17:50 UTC
  • mto: This revision was merged to the branch mainline in revision 3160.
  • Revision ID: aaron.bentley@utoronto.ca-20071225041750-t6chr3pmgnebvqcz
Handle non-directory parent conflicts (abentley, #177390)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    osutils,
20
20
    )
21
21
from bzrlib.inventory import InventoryEntry
22
 
from bzrlib.trace import mutter, is_quiet
 
22
from bzrlib.trace import mutter
23
23
from bzrlib.symbol_versioning import deprecated_function
24
24
 
25
25
 
211
211
    # mutter('start compare_trees')
212
212
 
213
213
    for (file_id, path, content_change, versioned, parent_id, name, kind,
214
 
         executable) in new_tree.iter_changes(old_tree, want_unchanged,
 
214
         executable) in new_tree._iter_changes(old_tree, want_unchanged,
215
215
            specific_files, extra_trees=extra_trees,
216
216
            require_versioned=require_versioned,
217
217
            want_unversioned=want_unversioned):
226
226
            if fully_present[1] is True:
227
227
                delta.added.append((path[1], file_id, kind[1]))
228
228
            else:
 
229
                assert fully_present[0] is True
229
230
                delta.removed.append((path[0], file_id, kind[0]))
230
231
        elif fully_present[0] is False:
231
232
            continue
303
304
        """Report one change to a file
304
305
 
305
306
        :param file_id: The file_id of the file
306
 
        :param path: The old and new paths as generated by Tree.iter_changes.
 
307
        :param path: The old and new paths as generated by Tree._iter_changes.
307
308
        :param versioned: may be 'added', 'removed', 'unchanged', or
308
309
            'unversioned.
309
310
        :param renamed: may be True or False
310
311
        :param modified: may be 'created', 'deleted', 'kind changed',
311
312
            'modified' or 'unchanged'.
312
313
        :param exe_change: True if the execute bit has changed
313
 
        :param kind: A pair of file kinds, as generated by Tree.iter_changes.
 
314
        :param kind: A pair of file kinds, as generated by Tree._iter_changes.
314
315
            None indicates no file present.
315
316
        """
316
 
        if is_quiet():
317
 
            return
318
317
        if paths[1] == '' and versioned == 'added' and self.suppress_root_add:
319
318
            return
320
319
        if versioned == 'unversioned':
374
373
    Further processing may be required to produce a human-readable output.
375
374
    Unfortunately, some tree-changing operations are very complex
376
375
    :change_iterator: an iterator or sequence of changes in the format
377
 
        generated by Tree.iter_changes
 
376
        generated by Tree._iter_changes
378
377
    :param reporter: The _ChangeReporter that will report the changes.
379
378
    """
380
379
    versioned_change_map = {