/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 bzrlib/conflicts.py

Add a new method ``Tree.revision_tree`` which allows access to cached
trees for arbitrary revisions. This allows the in development dirstate
tree format to provide access to the callers to cached copies of 
inventory data which are cheaper to access than inventories from the
repository. (Robert Collins, Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
 
433
433
    typestring = 'unversioned parent'
434
434
 
435
 
    format = 'Conflict adding versioned files to %(path)s.  %(action)s.'
 
435
    format = 'Conflict because %(path)s is not versioned, but has versioned'\
 
436
             ' children.  %(action)s.'
436
437
 
437
438
 
438
439
class MissingParent(HandledConflict):
439
440
    """An attempt to add files to a directory that is not present.
440
 
    Typically, the result of a merge where one tree deleted the directory and
441
 
    the other added a file to it.
 
441
    Typically, the result of a merge where THIS deleted the directory and
 
442
    the OTHER added a file to it.
 
443
    See also: DeletingParent (same situation, reversed THIS and OTHER)
442
444
    """
443
445
 
444
446
    typestring = 'missing parent'
446
448
    format = 'Conflict adding files to %(path)s.  %(action)s.'
447
449
 
448
450
 
 
451
class DeletingParent(HandledConflict):
 
452
    """An attempt to add files to a directory that is not present.
 
453
    Typically, the result of a merge where one OTHER deleted the directory and
 
454
    the THIS added a file to it.
 
455
    """
 
456
 
 
457
    typestring = 'deleting parent'
 
458
 
 
459
    format = "Conflict: can't delete %(path)s because it is not empty.  "\
 
460
             "%(action)s."
 
461
 
449
462
 
450
463
ctype = {}
451
464
 
458
471
 
459
472
 
460
473
register_types(ContentsConflict, TextConflict, PathConflict, DuplicateID,
461
 
               DuplicateEntry, ParentLoop, UnversionedParent, MissingParent,)
 
474
               DuplicateEntry, ParentLoop, UnversionedParent, MissingParent,
 
475
               DeletingParent,)