Show More
@@ -8,7 +8,7 b' imerge - interactive merge' | |||||
8 | from mercurial.i18n import _ |
|
8 | from mercurial.i18n import _ | |
9 | from mercurial.node import hex, short |
|
9 | from mercurial.node import hex, short | |
10 | from mercurial import commands, cmdutil, dispatch, fancyopts |
|
10 | from mercurial import commands, cmdutil, dispatch, fancyopts | |
11 | from mercurial import hg, filemerge, util |
|
11 | from mercurial import hg, filemerge, util, revlog | |
12 | import os, tarfile |
|
12 | import os, tarfile | |
13 |
|
13 | |||
14 | class InvalidStateFileException(Exception): pass |
|
14 | class InvalidStateFileException(Exception): pass | |
@@ -78,8 +78,8 b' class Imerge(object):' | |||||
78 |
|
78 | |||
79 | try: |
|
79 | try: | |
80 | parents = [self.repo.changectx(n) for n in status[:2]] |
|
80 | parents = [self.repo.changectx(n) for n in status[:2]] | |
81 | except LookupError: |
|
81 | except revlog.LookupError, e: | |
82 |
raise util.Abort('merge parent %s not in repository' % |
|
82 | raise util.Abort('merge parent %s not in repository' % e.name) | |
83 |
|
83 | |||
84 | status = status[2:] |
|
84 | status = status[2:] | |
85 | conflicts = int(status.pop(0)) * 3 |
|
85 | conflicts = int(status.pop(0)) * 3 |
@@ -61,4 +61,10 b' hg up 0' | |||||
61 | echo % nothing to merge |
|
61 | echo % nothing to merge | |
62 | hg imerge |
|
62 | hg imerge | |
63 |
|
63 | |||
|
64 | cd .. | |||
|
65 | hg -q clone -r 0 base clone | |||
|
66 | cd clone | |||
|
67 | echo % load unknown parent | |||
|
68 | hg imerge load ../savedmerge | |||
|
69 | ||||
64 | exit 0 |
|
70 | exit 0 |
@@ -46,3 +46,5 b' abort: there is nothing to merge' | |||||
46 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
46 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
47 | % nothing to merge |
|
47 | % nothing to merge | |
48 | abort: there is nothing to merge - use "hg update" instead |
|
48 | abort: there is nothing to merge - use "hg update" instead | |
|
49 | % load unknown parent | |||
|
50 | abort: merge parent e6da4671640124fe5d3d70d2f54441d6cd76ae35 not in repository |
General Comments 0
You need to be logged in to leave comments.
Login now