Mercurial and Git clients can push and pull from this alias URL to interact with this repository. You can change to which repository an alias points by going to the Aliases link on the project page.
# hgrcutils.py - Functions to manipulate hgrc (or similar) files## Copyright 2011 Angel Ezquerra <angel.ezquerra@gmail.com>## This software may be used and distributed according to the terms of the# GNU General Public License version 2 or any later version.import os
+from tortoisehg.hgqt.i18n import _from tortoisehg.hgqt import qtlib
from tortoisehg.util import wconfig
defloadIniFile(rcpath,parent=None):forfninrcpath:ifos.path.exists(fn):breakelse:forfninrcpath:# Try to create a file from rcpathtry:f=open(fn,'w')f.write('# Generated by TortoiseHg\n')f.close()breakexceptEnvironmentError:passelse:qtlib.WarningMsgBox(_('Unable to create a config file'),_('Insufficient access rights.'),parent=parent)returnNone,{}returnfn,wconfig.readfile(fn)defsetConfigValue(rcfilepath,cfgpath,value):''' Set a value on a config file, such as an hgrc or a .ini file rcpfilepath: Absolute path to a configuration file cfgpath: Full "path" of a configurable key Format is section.keyNamee.g. 'web.name') value: String value for the selected config key '''fn,cfg=loadIniFile([rcfilepath])ifnothasattr(cfg,'write'):returnFalseiffnisNone:returnFalsecfgFullKey=cfgpath.split('.')iflen(cfgFullKey)<2:returnFalsecfg.set(cfgFullKey[0],cfgFullKey[1],value)try:wconfig.writefile(cfg,fn)exceptEnvironmentError,e:returnFalsereturnTrue
Attach a Trello Card
Add a tag
Your session has expired
You are no longer logged in. Please log in and try your request again.
Filter RSS Feed
This RSS feed URL allows you to see the contents of your current filter using any feed reader.
This link includes a special authentication token. If you share the URL with anyone else, they can see this RSS feed's activity. You can disable these tokens when needed.
Your current filter is unsaved; changing it won't affect this RSS feed.