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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-26 19:35:47 UTC
  • mfrom: (1813.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060626193547-43661d1377f72b4d
(robertc) Misc minor typos and the like.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
from subprocess import Popen, PIPE
4
4
 
5
5
from bzrlib.errors import NoDiff3
 
6
from bzrlib.textfile import check_text_path
6
7
"""
7
8
Diff and patch functionality
8
9
"""
51
52
def diff3(out_file, mine_path, older_path, yours_path):
52
53
    def add_label(args, label):
53
54
        args.extend(("-L", label))
 
55
    check_text_path(mine_path)
 
56
    check_text_path(older_path)
 
57
    check_text_path(yours_path)
54
58
    args = ['diff3', "-E", "--merge"]
55
59
    add_label(args, "TREE")
56
60
    add_label(args, "ANCESTOR")