summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ceba72)
raw | patch | inline | side by side (parent: 8ceba72)
author | Fredrik Kuivinen <freku045@student.liu.se> | |
Mon, 12 Sep 2005 21:29:54 +0000 (23:29 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Sep 2005 21:53:57 +0000 (14:53 -0700) |
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge-fredrik.py | patch | blob | history |
diff --git a/git-merge-fredrik.py b/git-merge-fredrik.py
index 9a05ab797c5cf817384c5921d87803f7734de7b3..a5ca0760213386cd2755c4b77f6363c01013fe94 100755 (executable)
--- a/git-merge-fredrik.py
+++ b/git-merge-fredrik.py
#!/usr/bin/python
-import sys, math, random, os, re, signal, tempfile, stat, errno
+import sys, math, random, os, re, signal, tempfile, stat, errno, traceback
from heapq import heappush, heappop
from sets import Set
break
print 'Merging', h1, 'with', h2
-h1 = runProgram(['git-rev-parse', '--verify', h1 + '^0']).rstrip()
-h2 = runProgram(['git-rev-parse', '--verify', h2 + '^0']).rstrip()
-graph = buildGraph([h1, h2])
+try:
+ h1 = runProgram(['git-rev-parse', '--verify', h1 + '^0']).rstrip()
+ h2 = runProgram(['git-rev-parse', '--verify', h2 + '^0']).rstrip()
-[res, clean] = merge(graph.shaMap[h1], graph.shaMap[h2],
- firstBranch, secondBranch, graph)
+ graph = buildGraph([h1, h2])
-print ''
+ [res, clean] = merge(graph.shaMap[h1], graph.shaMap[h2],
+ firstBranch, secondBranch, graph)
+
+ print ''
+except:
+ traceback.print_exc(None, sys.stderr)
+ sys.exit(2)
if clean:
sys.exit(0)