I\'m having problems with pushing to mercurial repository:
$ hg push
pushing to https://user:***@hg.domain.com/X_repo
searching for changes
abort: authorization
My problem was a bit different. Password change triggered it... And I had a repo/.hgrc
and a repo/.hg/hgrc
. Not sure why, but these were conflicting.
For the record, the cleanest way I've found is to keep a global configuration file (on Windows C:\Users\
or Linux /home/
) with all the configuration that applies to all repositories (profiles, plugins/extensions, repos, etc), and then per repo, just use something like:
[paths]
default = https://path/to/remote/repo
# any other repo-specific config
Why I had another repo-specific mercurial config file, I don't know -- now everything is cleaned up and working nicely.