[PATCH 1 of 1] convert: move cvsps cache directory to ~/.cache

Frank Kingswood frank at kingswood-consulting.co.uk
Tue Dec 15 07:55:32 CST 2009


# HG changeset patch
# User Frank Kingswood <frank at kingswood-consulting.co.uk>
# Date 1260872318 0
# Node ID 769e164bc97fa95af6dd514ecfe4a6a80dbc8b84
# Parent  25919ebaba017e4395709a8c6d96f2b7370f6d02
convert: move cvsps cache directory to ~/.cache

diff -r 25919ebaba01 -r 769e164bc97f hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py	Mon Dec 14 23:14:50 2009 +0100
+++ b/hgext/convert/cvsps.py	Tue Dec 15 10:18:38 2009 +0000
@@ -147,9 +147,9 @@
     date = None
 
     if cache:
-        cachedir = os.path.expanduser('~/.hg.cvsps')
+        cachedir = os.path.expanduser('~/.cache/mercurial/convert')
         if not os.path.exists(cachedir):
-            os.mkdir(cachedir)
+            util.makedirs(cachedir)
 
         # The cvsps cache pickle needs a uniquified name, based on the
         # repository location. The address may have all sort of nasties


More information about the Mercurial-devel mailing list