( )⚙ D1547 remotenames: move function to pull remotenames from the remoterepo to core

This is an archive of the discontinued Mercurial Phabricator instance.

remotenames: move function to pull remotenames from the remoterepo to core
ClosedPublic

Authored by pulkit on Nov 29 2017, 4:57 PM.

Details

Summary

This patch is the first patch of the series moving functionality from
hgremotenames extension to core.

There are lot of functionality in the extension which in the end enables us to
store branch heads and bookmarks location on a server from which we are pulling
or cloning from. This will help us in creating a better bookmark workflow where
we can show user that a certain server has this bookmarks at this node. It will
also introduce namespaces related to remote bookmarks and remote branches.

This patch moves the functionality to pull branches and bookmarks from a
server from which we are pulling to core behind config option
experimental.remotenames.

This patch adds a test which helps us to analyse whether things are working or
not. We are currently writing things to ui, we will write information to files
in upcoming patches.

Previously reviewed as D937.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Nov 29 2017, 4:57 PM
dlax added a subscriber: dlax.Dec 1 2017, 3:23 AM
durin42 added a subscriber: durin42.Dec 5 2017, 5:14 PM

One nit that I will fix in flight. Thanks!

mercurial/remotenames.py
4

Nit: my work on this code predates my time at Google. This should be raf@durin42.com, not augie@google.com.

durin42 accepted this revision.Dec 5 2017, 5:16 PM
This revision is now accepted and ready to land.Dec 5 2017, 5:16 PM
This revision was automatically updated to reflect the committed changes.