~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-01 07:56:03 UTC
  • mfrom: (3224.5.40 faster-startup)
  • Revision ID: pqm@pqm.ubuntu.com-20081001075603-s9nynw8y85fmrprj
Reduce startup time by a small amount. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        deprecated_function,
44
44
        one_three
45
45
        )
46
 
from bzrlib.trace import mutter, warning
 
46
from bzrlib.trace import warning
47
47
 
48
48
 
49
49
# TODO: Rather than building a changeset object, we should probably
439
439
    return timestamp.format_patch_date(mtime)
440
440
 
441
441
 
442
 
def _raise_if_nonexistent(paths, old_tree, new_tree):
443
 
    """Complain if paths are not in either inventory or tree.
444
 
 
445
 
    It's OK with the files exist in either tree's inventory, or 
446
 
    if they exist in the tree but are not versioned.
447
 
    
448
 
    This can be used by operations such as bzr status that can accept
449
 
    unknown or ignored files.
450
 
    """
451
 
    mutter("check paths: %r", paths)
452
 
    if not paths:
453
 
        return
454
 
    s = old_tree.filter_unversioned_files(paths)
455
 
    s = new_tree.filter_unversioned_files(s)
456
 
    s = [path for path in s if not new_tree.has_filename(path)]
457
 
    if s:
458
 
        raise errors.PathsDoNotExist(sorted(s))
459
 
 
460
 
 
461
442
@deprecated_function(one_three)
462
443
def get_prop_change(meta_modified):
463
444
    if meta_modified: