Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 2597
951e631c9c1d
parent 2576
b984efd69f15
child 2677
3d4277929fb3
child 2718
af0ba4c4bea6
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Apr 20 17:23:36 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Apr 20 18:11:03 2013 +0200
@@ -2209,7 +2209,7 @@
             self.__lastChangeGroupPath or repodir,
             self.trUtf8("Mercurial Changegroup Files (*.hg);;All Files (*)"))
         if file:
-            self.__lastChangeGroupPath = os.path.dirname(self.__lastChangeGroupPath)
+            self.__lastChangeGroupPath = os.path.dirname(file)
             
             if self.getPlugin().getPreferences("UseLogBrowser"):
                 from .HgLogBrowserDialog import HgLogBrowserDialog
@@ -2244,7 +2244,7 @@
             self.__lastChangeGroupPath or repodir,
             self.trUtf8("Mercurial Changegroup Files (*.hg);;All Files (*)"))
         if file:
-            self.__lastChangeGroupPath = os.path.dirname(self.__lastChangeGroupPath)
+            self.__lastChangeGroupPath = os.path.dirname(file)
             
             args = []
             args.append('identify')

eric ide

mercurial