--- a/Plugins/VcsPlugins/vcsMercurial/HgDialog.py Thu Oct 21 08:54:49 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgDialog.py Thu Oct 21 19:13:17 2010 +0200 @@ -69,14 +69,6 @@ self.normal and \ self.errors.toPlainText() == "": self.accept() - - if self.__updateCommand and self.normal: - # check, if we had additions or deletions - lastLine = self.resultbox.toPlainText().splitlines()[-1] - if lastLine and lastLine.strip()[0] in "0123456789": - adds, merges, deletes, conflicts = \ - [int(a.split()[0]) for a in lastLine.split(",")] - self.__hasAddOrDelete = adds > 0 or deletes > 0 def on_buttonBox_clicked(self, button): """ @@ -177,6 +169,13 @@ 'replace') self.resultbox.insertPlainText(s) self.resultbox.ensureCursorVisible() + + # check for a changed project file + if self.__updateCommand: + for line in s.splitlines(): + if '.e4p' in line: + self.__hasAddOrDelete = True + break def __readStderr(self): """