meld r1298 - trunk/vc



Author: vincele
Date: Sat Mar 28 00:32:19 2009
New Revision: 1298
URL: http://svn.gnome.org/viewvc/meld?rev=1298&view=rev

Log:
CVS don't open-code self.VC_DIR


Modified:
   trunk/vc/cvs.py

Modified: trunk/vc/cvs.py
==============================================================================
--- trunk/vc/cvs.py	(original)
+++ trunk/vc/cvs.py	Sat Mar 28 00:32:19 2009
@@ -58,7 +58,7 @@
     def _get_dirsandfiles(self, directory, dirs, files):
 
         try:
-            entries = open( os.path.join(directory, "CVS/Entries")).read()
+            entries = open(os.path.join(directory, self.VC_DIR, "Entries")).read()
             # poor mans universal newline
             entries = entries.replace("\r","\n").replace("\n\n","\n")
         except IOError, e: # no cvs dir
@@ -67,7 +67,7 @@
             return d,f
 
         try:
-            logentries = open( os.path.join(directory, "CVS/Entries.Log")).read()
+            logentries = open(os.path.join(directory, self.VC_DIR, "Entries.Log")).read()
         except IOError, e:
             pass
         else:



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