meld r1240 - trunk/vc



Author: vincele
Date: Mon Mar  9 20:13:16 2009
New Revision: 1240
URL: http://svn.gnome.org/viewvc/meld?rev=1240&view=rev

Log:
Use self.CMD instead of hardcoding 'hg' command name


Modified:
   trunk/vc/mercurial.py

Modified: trunk/vc/mercurial.py
==============================================================================
--- trunk/vc/mercurial.py	(original)
+++ trunk/vc/mercurial.py	Mon Mar  9 20:13:16 2009
@@ -50,7 +50,7 @@
 
         while 1:
             try:
-                entries = os.popen('cd "%s" && hg status -A .'%directory).read().split("\n")[:-1]
+                entries = os.popen('cd "%s" && %s status -A .' % (directory, self.CMD)).read().split("\n")[:-1]
                 break
             except OSError, e:
                 if e.errno != errno.EAGAIN:
@@ -85,5 +85,3 @@
                 retdirs.append( _vc.Dir(path, d, state) )
 
         return retdirs, retfiles
-
-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]