On Mon, Sep 7, 2009 at 1:31 PM, Yuki KODAMA<endflow....@gmail.com> wrote: > Hi folks, > > I faced with a sticky problem at the list of paths of 'Sync' tab in TortoiseHg > setting tool. When I add a new path with alias 'remote', it wasn't shown > in the list of paths. On the other hand, Synchronize tool shows 'remote' > path correctly in drop-down list. Here is my repository HGRC file: > > [paths] > default = c:/work/thg > remote = ssh://h...@bitbucket.org/kuy/thg-kuy/ > main = https://k...@bitbucket.org/tortoisehg/stable/ > > With a moment's thought, I found out that a line started with 'REM' > is treated as comment line in INI file. See iniparse source code:
nice catch. > class CommentLine(LineType): > regex = re.compile(r'^(?P<csep>[;#]|[rR][eE][mM])' > r'(?P<comment>.*)$') That's regrettable, and it doesn't appear to be configurable. > However, you may know, the alias 'remote' is valid in Mercurial. > So I suppose we shouldn't use iniparse module for [paths] section. > To acquire paths from HGRC file, we can use > > self.repo.ui.configitems('paths') That is certainly an option but I worry about other places that might get caught by this. Other than monkey patching iniparse, I don't see a lot of good options. -- Steve Borho ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop