[PATCH] CVS ${HOME} should be an absolute path



Was that a cut'n'paste mistake, or was it really intended
to os.path.join directory with ${HOME} here. I don't
understand how it could make sense. Please explain.

-- 
Vincent Legoll
Index: vc/cvs.py
===================================================================
--- vc/cvs.py	(revision 1298)
+++ vc/cvs.py	(working copy)
@@ -140,8 +140,8 @@
         cvsfiles = map(lambda x: x[1], matches)
         # ignored
         try:
-            ignored = open( os.path.join(directory, "%s/.cvsignore" % os.environ["HOME"] )).read().split()
-        except (IOError,KeyError):
+            ignored = open(os.path.join(os.environ["HOME"], ".cvsignore")).read().split()
+        except (IOError, KeyError):
             ignored = []
         try:
             ignored += open( os.path.join(directory, ".cvsignore")).read().split()


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