Previously, we would loaded every name, i.e. both 'remote/default' and 'remote'
are loaded from the .hg/remotenames file. Now, we always load 'remote/default'
and use the alias.default option to strip off the '/default' part.
Previously, we returned early from the loadremotename method preventing
registration of our namespace. This patch moves the registration to reposetup
so that the namespace is always registered.
Test coverage has been added.
I find myself running ``hg up -C <repo>/default`` a lot. Furthermore,
I probably run ``hg up -C <repo>`` and get an error more often than
I actually specify a branch other than default. Consequently, it really
feels like I want to be able to run ``hg up -C ``<repo>`` and have that
bring me to '<repo>/default'.
Including the alias is configured using the "alias.default" option in the
[remotebranches] section and defaults to off. Furthermore, it doesn't
create an alias for the "default" remote since that leads confusion with the
default branch.
pushed() returns the set of revsions known as pushed to any remote
repository by remotebranches. upstream() returns the set of revisions
that have been pushed to paths marked as "upstream" by listing them in
the remotebranches.upstream config field.