~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: 2010-07-19 13:08:51 UTC
  • mfrom: (5346.3.1 pathnotchild)
  • Revision ID: pqm@pqm.ubuntu.com-20100719130851-igs92yvcf0y7j964
(jameinel) Give a better traceback when a user tries to add files to
 different trees. (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
 
421
421
    # Get the specific files (all files is None, no files is [])
422
422
    if make_paths_wt_relative and working_tree is not None:
423
 
        try:
424
 
            from bzrlib.builtins import safe_relpath_files
425
 
            other_paths = safe_relpath_files(working_tree, other_paths,
426
 
            apply_view=apply_view)
427
 
        except errors.FileInWrongBranch:
428
 
            raise errors.BzrCommandError("Files are in different branches")
 
423
        from bzrlib.builtins import safe_relpath_files
 
424
        other_paths = safe_relpath_files(working_tree, other_paths,
 
425
        apply_view=apply_view)
429
426
    specific_files.extend(other_paths)
430
427
    if len(specific_files) == 0:
431
428
        specific_files = None