Commits

Anonymous committed dcdc3c0

context menu: no need to chdir, Windows shell already does that

Comments (0)

Files changed (1)

tortoise/contextmenu.py

         import os, subprocess
 
         print "_commit() on %s" % ", ".join(self._filenames)
-
-        path = self._filenames[0]
-        if os.path.isdir(path):
-            dir = path
-        else:
-            dir = os.path.dirname(path)
-        os.chdir(dir)
         
         hgpath = self._find_path('hg')
         if hgpath:
         import os, subprocess
 
         print "_commit() on %s" % ", ".join(self._filenames)
-
-        path = self._filenames[0]
-        if os.path.isdir(path):
-            dir = path
-        else:
-            dir = os.path.dirname(path)
-
-        print "chdir to %s" % dir
-        os.chdir(dir)
-        print "cwd = %s" % os.getcwd()
         
         hgpath = self._find_path('hg')
         if hgpath:
         
         print "_view() on %s" % ", ".join(self._filenames)
         
-        path = self._filenames[0]
-        if os.path.isdir(path):
-            dir = path
-        else:
-            dir = os.path.dirname(path)
-        os.chdir(dir)
-        
         hgpath = self._find_path('hg')
         if hgpath:
             subprocess.Popen([hgpath, 'view'])