src/eric7/Plugins/VcsPlugins/vcsGit/git.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9482
a2bc06a54d9d
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
535 if revision: 535 if revision:
536 res = EricMessageBox.yesNo( 536 res = EricMessageBox.yesNo(
537 None, 537 None,
538 self.tr("Switch"), 538 self.tr("Switch"),
539 self.tr( 539 self.tr(
540 """<p>Do you really want to switch to <b>{0}</b>?""" """</p>""" 540 """<p>Do you really want to switch to <b>{0}</b>?</p>"""
541 ).format(revision), 541 ).format(revision),
542 yesDefault=True, 542 yesDefault=True,
543 ) 543 )
544 if not res: 544 if not res:
545 return False 545 return False
2375 2375
2376 branchName = self.gitGetCurrentBranch(repodir) 2376 branchName = self.gitGetCurrentBranch(repodir)
2377 EricMessageBox.information( 2377 EricMessageBox.information(
2378 None, 2378 None,
2379 self.tr("Current Branch"), 2379 self.tr("Current Branch"),
2380 self.tr("""<p>The current branch is <b>{0}</b>.""" """</p>""").format( 2380 self.tr("""<p>The current branch is <b>{0}</b>.</p>""").format(
2381 branchName 2381 branchName
2382 ), 2382 ),
2383 ) 2383 )
2384 2384
2385 ########################################################################### 2385 ###########################################################################
3887 3887
3888 info.append("""<p><table>""") 3888 info.append("""<p><table>""")
3889 info.append(self.tr("""<tr><td><b>Statistics</b></td></tr>""")) 3889 info.append(self.tr("""<tr><td><b>Statistics</b></td></tr>"""))
3890 info.append( 3890 info.append(
3891 self.tr( 3891 self.tr(
3892 """<tr><td>Number of loose objects: </td>""" """<td>{0}</td></tr>""" 3892 """<tr><td>Number of loose objects: </td><td>{0}</td></tr>"""
3893 ).format(statistics["count"]) 3893 ).format(statistics["count"])
3894 ) 3894 )
3895 info.append( 3895 info.append(
3896 self.tr( 3896 self.tr(
3897 """<tr><td>Disk space used by loose objects: </td>""" 3897 """<tr><td>Disk space used by loose objects: </td>"""
3904 """<td>{0}</td></tr>""" 3904 """<td>{0}</td></tr>"""
3905 ).format(statistics["in-pack"]) 3905 ).format(statistics["in-pack"])
3906 ) 3906 )
3907 info.append( 3907 info.append(
3908 self.tr( 3908 self.tr(
3909 """<tr><td>Number of packs: </td>""" """<td>{0}</td></tr>""" 3909 """<tr><td>Number of packs: </td><td>{0}</td></tr>"""
3910 ).format(statistics["packs"]) 3910 ).format(statistics["packs"])
3911 ) 3911 )
3912 info.append( 3912 info.append(
3913 self.tr( 3913 self.tr(
3914 """<tr><td>Disk space used by packed objects: </td>""" 3914 """<tr><td>Disk space used by packed objects: </td>"""
3921 """<td>{0}</td></tr>""" 3921 """<td>{0}</td></tr>"""
3922 ).format(statistics["prune-packable"]) 3922 ).format(statistics["prune-packable"])
3923 ) 3923 )
3924 info.append( 3924 info.append(
3925 self.tr( 3925 self.tr(
3926 """<tr><td>Garbage files: </td>""" """<td>{0}</td></tr>""" 3926 """<tr><td>Garbage files: </td><td>{0}</td></tr>"""
3927 ).format(statistics["garbage"]) 3927 ).format(statistics["garbage"])
3928 ) 3928 )
3929 info.append( 3929 info.append(
3930 self.tr( 3930 self.tr(
3931 """<tr><td>Disk space used by garbage files: </td>""" 3931 """<tr><td>Disk space used by garbage files: </td>"""

eric ide

mercurial