--- a/Plugins/VcsPlugins/vcsMercurial/hg.py Fri Jan 31 12:12:56 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/hg.py Sat Feb 01 15:49:04 2014 +0100 @@ -52,18 +52,18 @@ """ VersionControl.__init__(self, parent, name) self.defaultOptions = { - 'global': [''], - 'commit': [''], + 'global': [''], + 'commit': [''], 'checkout': [''], - 'update': [''], - 'add': [''], - 'remove': [''], - 'diff': [''], - 'log': [''], - 'history': [''], - 'status': [''], - 'tag': [''], - 'export': [''] + 'update': [''], + 'add': [''], + 'remove': [''], + 'diff': [''], + 'log': [''], + 'history': [''], + 'status': [''], + 'tag': [''], + 'export': [''] } self.__plugin = plugin @@ -1940,7 +1940,8 @@ if res: dia.exec_() res = dia.hasAddOrDelete() - if command == "unbundle": + if self.bundleFile and \ + os.path.exists(self.bundleFile): os.remove(self.bundleFile) self.bundleFile = None self.checkVCSStatus()