Problem running mercurial against symlinked .hgrc file under Cygwin/Windows 7
        Posted  
        
            by emptyset
        on Super User
        
        See other posts from Super User
        
            or by emptyset
        
        
        
        Published on 2010-04-20T16:23:37Z
        Indexed on 
            2010/04/20
            16:33 UTC
        
        
        Read the original article
        Hit count: 549
        
This is not a question about handling symlinks in the mercurial repository.
I have this setup at work where I keep my dotfiles in a separate directory (.configuration) that I can use to synch my dotfiles between cygwin/windows and linux, then use symlinks instead of dotfiles in the home directory.
So, I have the symlink ~/.hgrc -> .configuration/.hgrc in my home directory.  After setting this up, mercurial complains thus:
$ hg st
hg: config error at C:\Users\aaf\.hgrc:1: '!<symlink>ÿþ.configuration/.hgrc'
Removing the symlink and replacing it with the actual file works, so the contents of the .hgrc file are not at fault.  I can live with that, I suppose, but I'd like to know why this happens.  All other tools I've configured the same way work great with symlinked dotfiles.
© Super User or respective owner