This patch moves the functionality from remotenames extension to store
remotenames in .hg/remotenames file to core by changing following things:
- Each type of remotename will be stored in it's own specific file, hence we
are now storing bookmarks in .hg/remotenames/bookmarks and branches in
.hg/remotenames/branches.
- Since each type of remotename is stored in specific file, the format of the
data stored is dropped to emit the nametype thing.
The logic to sync with existing remotenames file and saving journals and other
related things will be moved to core in next patches incrementally.
Thanks to Ryan McElroy to suggesting to store each type in their own file which
makes the data format more better and makes the storage extensible.
The functions saveremotebookmarks and saveremotebranches looks very much same
for now but it's preferred not to merge them because there will be bookmark
specific logic like storing journal and will be easy to plug in more type
specific logic.
repo parameter is not used