Show More
@@ -809,12 +809,12 b' class morestatus(object):' | |||
|
809 | 809 | reporoot = attr.ib() |
|
810 | 810 | unfinishedop = attr.ib() |
|
811 | 811 | unfinishedmsg = attr.ib() |
|
812 |
|
|
|
812 | activemerge = attr.ib() | |
|
813 | 813 | unresolvedpaths = attr.ib() |
|
814 | 814 | _label = b'status.morestatus' |
|
815 | 815 | |
|
816 | 816 | def formatfile(self, path, fm): |
|
817 |
if self. |
|
|
817 | if self.activemerge and path in self.unresolvedpaths: | |
|
818 | 818 | fm.data(unresolved=True) |
|
819 | 819 | |
|
820 | 820 | def formatfooter(self, fm): |
@@ -838,7 +838,7 b' class morestatus(object):' | |||
|
838 | 838 | ) |
|
839 | 839 | |
|
840 | 840 | def _formatconflicts(self, fm): |
|
841 |
if not self. |
|
|
841 | if not self.activemerge: | |
|
842 | 842 | return |
|
843 | 843 | |
|
844 | 844 | if self.unresolvedpaths: |
@@ -868,20 +868,18 b' To mark files as resolved: hg resolve -' | |||
|
868 | 868 | def readmorestatus(repo): |
|
869 | 869 | """Returns a morestatus object if the repo has unfinished state.""" |
|
870 | 870 | statetuple = statemod.getrepostate(repo) |
|
871 | mergestate = mergemod.mergestate.read(repo) | |
|
872 | activemerge = mergestate.active() | |
|
871 | 873 | if not statetuple: |
|
872 | 874 | return None |
|
873 | 875 | |
|
874 | 876 | unfinishedop, unfinishedmsg = statetuple |
|
875 | 877 | mergestate = mergemod.mergestate.read(repo) |
|
876 | 878 | unresolved = None |
|
877 |
if |
|
|
879 | if activemerge: | |
|
878 | 880 | unresolved = sorted(mergestate.unresolved()) |
|
879 | 881 | return morestatus( |
|
880 | repo.root, | |
|
881 | unfinishedop, | |
|
882 | unfinishedmsg, | |
|
883 | unresolved is not None, | |
|
884 | unresolved, | |
|
882 | repo.root, unfinishedop, unfinishedmsg, activemerge, unresolved | |
|
885 | 883 | ) |
|
886 | 884 | |
|
887 | 885 |
General Comments 0
You need to be logged in to leave comments.
Login now