Show More
@@ -70,15 +70,15 b' with zipfile.ZipFile(args.out[0], "w", z' | |||
|
70 | 70 | # Manually constructed entries |
|
71 | 71 | zf.writestr( |
|
72 | 72 | "one_delta_applies", |
|
73 | bytes(corpus(b'a', [delta([deltafrag(0, 1, b'b')])])) | |
|
73 | bytes(corpus(b'a', [delta([deltafrag(0, 1, b'b')])])), | |
|
74 | 74 | ) |
|
75 | 75 | zf.writestr( |
|
76 | 76 | "one_delta_starts_late", |
|
77 | bytes(corpus(b'a', [delta([deltafrag(3, 1, b'b')])])) | |
|
77 | bytes(corpus(b'a', [delta([deltafrag(3, 1, b'b')])])), | |
|
78 | 78 | ) |
|
79 | 79 | zf.writestr( |
|
80 | 80 | "one_delta_ends_late", |
|
81 | bytes(corpus(b'a', [delta([deltafrag(0, 20, b'b')])])) | |
|
81 | bytes(corpus(b'a', [delta([deltafrag(0, 20, b'b')])])), | |
|
82 | 82 | ) |
|
83 | 83 | |
|
84 | 84 | try: |
@@ -793,14 +793,17 b' class morestatus(object):' | |||
|
793 | 793 | fm.data(unresolved=True) |
|
794 | 794 | |
|
795 | 795 | def formatfooter(self, fm): |
|
796 | statemsg = _(b'The repository is in an unfinished *%s* state.' | |
|
797 | ) % self.unfinishedop | |
|
796 | statemsg = ( | |
|
797 | _(b'The repository is in an unfinished *%s* state.') | |
|
798 | % self.unfinishedop | |
|
799 | ) | |
|
798 | 800 | fm.plain(b'%s\n' % _commentlines(statemsg), label=self._label) |
|
799 | 801 | |
|
800 | 802 | self._formatconflicts(fm) |
|
801 | 803 | if self.unfinishedmsg: |
|
802 | fm.plain(b'%s\n' % _commentlines(self.unfinishedmsg), | |
|
803 |
|
|
|
804 | fm.plain( | |
|
805 | b'%s\n' % _commentlines(self.unfinishedmsg), label=self._label | |
|
806 | ) | |
|
804 | 807 | |
|
805 | 808 | def _formatconflicts(self, fm): |
|
806 | 809 | if not self.inmergestate: |
@@ -809,8 +812,8 b' class morestatus(object):' | |||
|
809 | 812 | if self.unresolvedpaths: |
|
810 | 813 | mergeliststr = b'\n'.join( |
|
811 | 814 | [ |
|
812 | b' %s' % util.pathto(self.reporoot, encoding.getcwd(), | |
|
813 | path) | |
|
815 | b' %s' | |
|
816 | % util.pathto(self.reporoot, encoding.getcwd(), path) | |
|
814 | 817 | for path in self.unresolvedpaths |
|
815 | 818 | ] |
|
816 | 819 | ) |
@@ -841,8 +844,13 b' def readmorestatus(repo):' | |||
|
841 | 844 | unresolved = None |
|
842 | 845 | if mergestate.active(): |
|
843 | 846 | unresolved = sorted(mergestate.unresolved()) |
|
844 | return morestatus(repo.root, unfinishedop, unfinishedmsg, | |
|
845 | unresolved is not None, unresolved) | |
|
847 | return morestatus( | |
|
848 | repo.root, | |
|
849 | unfinishedop, | |
|
850 | unfinishedmsg, | |
|
851 | unresolved is not None, | |
|
852 | unresolved, | |
|
853 | ) | |
|
846 | 854 | |
|
847 | 855 | |
|
848 | 856 | def findpossible(cmd, table, strict=False): |
General Comments 0
You need to be logged in to leave comments.
Login now