eric6/Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 8220
006ee31b4835
parent 8205
4a0f1f896341
child 8222
5994b80b8760
equal deleted inserted replaced
8219:013aee248a62 8220:006ee31b4835
1212 1212
1213 output, error = self.__client.runcommand(args) 1213 output, error = self.__client.runcommand(args)
1214 1214
1215 infoBlock = [] 1215 infoBlock = []
1216 if output: 1216 if output:
1217 index = 0 1217 for index, line in enumerate(output.splitlines(), start=1):
1218 for line in output.splitlines():
1219 index += 1
1220 (changeset, tags, author, date, branches, 1218 (changeset, tags, author, date, branches,
1221 bookmarks) = line.split("@@@") 1219 bookmarks) = line.split("@@@")
1222 cdate, ctime = date.split()[:2] 1220 cdate, ctime = date.split()[:2]
1223 info = [] 1221 info = []
1224 info.append(QCoreApplication.translate( 1222 info.append(QCoreApplication.translate(
1705 '{date|isodate}@@@{branches}@@@{parents}@@@{bookmarks}\n') 1703 '{date|isodate}@@@{branches}@@@{parents}@@@{bookmarks}\n')
1706 1704
1707 output, error = self.__client.runcommand(args) 1705 output, error = self.__client.runcommand(args)
1708 1706
1709 if output: 1707 if output:
1710 index = 0 1708 for index, line in enumerate(output.splitlines(), start=1):
1711 for line in output.splitlines():
1712 index += 1
1713 (changeset, tags, author, date, branches, parents, 1709 (changeset, tags, author, date, branches, parents,
1714 bookmarks) = line.split("@@@") 1710 bookmarks) = line.split("@@@")
1715 cdate, ctime = date.split()[:2] 1711 cdate, ctime = date.split()[:2]
1716 info.append("""<p><table>""") 1712 info.append("""<p><table>""")
1717 if mode == "heads": 1713 if mode == "heads":

eric ide

mercurial