/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/diff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 07:05:00 UTC
  • mfrom: (3376.2.15 no-asserts)
  • Revision ID: pqm@pqm.ubuntu.com-20080508070500-9zyyvsk0eev20t4w
(mbp) remove and disallow assert statements

Show diffs side-by-side

added added

removed removed

Lines of Context:
439
439
def _patch_header_date(tree, file_id, path):
440
440
    """Returns a timestamp suitable for use in a patch header."""
441
441
    mtime = tree.get_file_mtime(file_id, path)
442
 
    assert mtime is not None, \
443
 
        "got an mtime of None for file-id %s, path %s in tree %s" % (
444
 
                file_id, path, tree)
445
442
    return timestamp.format_patch_date(mtime)
446
443
 
447
444
 
836
833
        else:
837
834
            extra_factories = []
838
835
        if external_diff_options:
839
 
            assert isinstance(external_diff_options, basestring)
840
836
            opts = external_diff_options.split()
841
837
            def diff_file(olab, olines, nlab, nlines, to_file):
842
838
                external_diff(olab, olines, nlab, nlines, to_file, opts)