##// END OF EJS Templates
formatting: fix some recent formatting regressions...
Martin von Zweigbergk -
r44307:612951e0 default
parent child Browse files
Show More
@@ -70,15 +70,15 b' with zipfile.ZipFile(args.out[0], "w", z'
70 # Manually constructed entries
70 # Manually constructed entries
71 zf.writestr(
71 zf.writestr(
72 "one_delta_applies",
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 zf.writestr(
75 zf.writestr(
76 "one_delta_starts_late",
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 zf.writestr(
79 zf.writestr(
80 "one_delta_ends_late",
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 try:
84 try:
@@ -793,14 +793,17 b' class morestatus(object):'
793 fm.data(unresolved=True)
793 fm.data(unresolved=True)
794
794
795 def formatfooter(self, fm):
795 def formatfooter(self, fm):
796 statemsg = _(b'The repository is in an unfinished *%s* state.'
796 statemsg = (
797 ) % self.unfinishedop
797 _(b'The repository is in an unfinished *%s* state.')
798 % self.unfinishedop
799 )
798 fm.plain(b'%s\n' % _commentlines(statemsg), label=self._label)
800 fm.plain(b'%s\n' % _commentlines(statemsg), label=self._label)
799
801
800 self._formatconflicts(fm)
802 self._formatconflicts(fm)
801 if self.unfinishedmsg:
803 if self.unfinishedmsg:
802 fm.plain(b'%s\n' % _commentlines(self.unfinishedmsg),
804 fm.plain(
803 label=self._label)
805 b'%s\n' % _commentlines(self.unfinishedmsg), label=self._label
806 )
804
807
805 def _formatconflicts(self, fm):
808 def _formatconflicts(self, fm):
806 if not self.inmergestate:
809 if not self.inmergestate:
@@ -809,8 +812,8 b' class morestatus(object):'
809 if self.unresolvedpaths:
812 if self.unresolvedpaths:
810 mergeliststr = b'\n'.join(
813 mergeliststr = b'\n'.join(
811 [
814 [
812 b' %s' % util.pathto(self.reporoot, encoding.getcwd(),
815 b' %s'
813 path)
816 % util.pathto(self.reporoot, encoding.getcwd(), path)
814 for path in self.unresolvedpaths
817 for path in self.unresolvedpaths
815 ]
818 ]
816 )
819 )
@@ -841,8 +844,13 b' def readmorestatus(repo):'
841 unresolved = None
844 unresolved = None
842 if mergestate.active():
845 if mergestate.active():
843 unresolved = sorted(mergestate.unresolved())
846 unresolved = sorted(mergestate.unresolved())
844 return morestatus(repo.root, unfinishedop, unfinishedmsg,
847 return morestatus(
845 unresolved is not None, unresolved)
848 repo.root,
849 unfinishedop,
850 unfinishedmsg,
851 unresolved is not None,
852 unresolved,
853 )
846
854
847
855
848 def findpossible(cmd, table, strict=False):
856 def findpossible(cmd, table, strict=False):
General Comments 0
You need to be logged in to leave comments. Login now