10 import pysvn |
10 import pysvn |
11 |
11 |
12 from PyQt4.QtGui import * |
12 from PyQt4.QtGui import * |
13 from PyQt4.QtCore import * |
13 from PyQt4.QtCore import * |
14 |
14 |
15 from SvnUtilities import formatTime |
15 from .SvnUtilities import formatTime |
16 from SvnDialogMixin import SvnDialogMixin |
16 from .SvnDialogMixin import SvnDialogMixin |
17 |
17 |
18 from Ui_SvnRepoBrowserDialog import Ui_SvnRepoBrowserDialog |
18 from .Ui_SvnRepoBrowserDialog import Ui_SvnRepoBrowserDialog |
19 |
19 |
20 import UI.PixmapCache |
20 import UI.PixmapCache |
21 |
21 |
22 class SvnRepoBrowserDialog(QDialog, SvnDialogMixin, Ui_SvnRepoBrowserDialog): |
22 class SvnRepoBrowserDialog(QDialog, SvnDialogMixin, Ui_SvnRepoBrowserDialog): |
23 """ |
23 """ |
181 dirent["created_rev"], dirent["last_author"], |
181 dirent["created_rev"], dirent["last_author"], |
182 dirent["size"], dirent["time"], |
182 dirent["size"], dirent["time"], |
183 dirent["kind"], dirent["path"]) |
183 dirent["kind"], dirent["path"]) |
184 self.__resort() |
184 self.__resort() |
185 self.__resizeColumns() |
185 self.__resizeColumns() |
186 except pysvn.ClientError, e: |
186 except pysvn.ClientError as e: |
187 self.__showError(e.args[0]) |
187 self.__showError(e.args[0]) |
188 except AttributeError: |
188 except AttributeError: |
189 self.__showError(\ |
189 self.__showError(\ |
190 self.trUtf8("The installed version of PySvn should be " |
190 self.trUtf8("The installed version of PySvn should be " |
191 "1.4.0 or better.")) |
191 "1.4.0 or better.")) |