[cig-commits] commit: oops... rc file tag error & full path req for extensions

Mercurial hg at geodynamics.org
Mon Nov 24 11:27:19 PST 2008


changeset:   85:b09cf52c103d
tag:         tip
user:        steve at SteveNb.unknownNetwork
date:        Wed Apr 23 17:03:22 2008 +1000
files:       obtainRepositories.py
description:
oops... rc file tag error & full path req for extensions


diff -r 7412e17d383e -r b09cf52c103d obtainRepositories.py
--- a/obtainRepositories.py	Wed Apr 23 15:48:39 2008 +1000
+++ b/obtainRepositories.py	Wed Apr 23 17:03:22 2008 +1000
@@ -42,9 +42,9 @@ c=ConfigParser.ConfigParser()
 c=ConfigParser.ConfigParser()
 c.read('.hg/hgrc')
 try:
-	c.add_section('Extensions')
+	c.add_section('extensions')
 except ConfigParser.DuplicateSectionError:
 	pass    # If the error is that it exists already, keep going
-c.set( 'Extensions', 'hgext.forest', 'forest/forest.py' )
+c.set( 'extensions', 'hgext.forest', os.getcwd() + '/.hg/forest/forest.py' )
 c.write( open( '.hg/hgrc', 'w' ) )
 



More information about the CIG-COMMITS mailing list