eric6/Plugins/VcsPlugins/vcsPySvn/SvnInfoDialog.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
9 """ 9 """
10 10
11 from __future__ import unicode_literals 11 from __future__ import unicode_literals
12 12
13 import os 13 import os
14 import sys
15 14
16 import pysvn 15 import pysvn
17 16
18 from PyQt5.QtCore import Qt, QMutexLocker 17 from PyQt5.QtCore import Qt, QMutexLocker
19 from PyQt5.QtWidgets import QDialog, QApplication 18 from PyQt5.QtWidgets import QDialog, QApplication
65 os.chdir(projectPath) 64 os.chdir(projectPath)
66 try: 65 try:
67 entries = self.client.info2(fn, recurse=False) 66 entries = self.client.info2(fn, recurse=False)
68 infoStr = "<table>" 67 infoStr = "<table>"
69 for path, info in entries: 68 for path, info in entries:
70 if sys.version_info[0] == 2:
71 path = path.decode('utf-8')
72 infoStr += self.tr( 69 infoStr += self.tr(
73 "<tr><td><b>Path (relative to project):</b></td>" 70 "<tr><td><b>Path (relative to project):</b></td>"
74 "<td>{0}</td></tr>").format(path) 71 "<td>{0}</td></tr>").format(path)
75 if info['URL']: 72 if info['URL']:
76 infoStr += self.tr( 73 infoStr += self.tr(

eric ide

mercurial