Nicer conflict markers
authorKarl Hasselström <kha@treskal.com>
Wed, 19 Dec 2007 18:00:12 +0000 (18:00 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Wed, 19 Dec 2007 23:13:30 +0000 (23:13 +0000)
Instead of tagging the conflict markers with sha1 hashes, use
"ancestor", "current", and "patched".

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/git.py

index 659bd7b..43ac204 100644 (file)
@@ -710,7 +710,10 @@ def merge_recursive(base, head1, head2):
     local tree
     """
     refresh_index()
-    p = GRun('merge-recursive', base, '--', head1, head2).returns([0, 1])
+    p = GRun('merge-recursive', base, '--', head1, head2).env(
+        { 'GITHEAD_%s' % base: 'ancestor',
+          'GITHEAD_%s' % head1: 'current',
+          'GITHEAD_%s' % head2: 'patched'}).returns([0, 1])
     output = p.output_lines()
     if p.exitcode == 0:
         # No problems