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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Thu Oct 5 06:14:01 EDT 2017


pulkit added a comment.


  In https://phab.mercurial-scm.org/D937#15824, @dlax wrote:
  
  > Also, it'd be useful to indicate where the code comes from (i.e. what is the "remoterepo" mentioned in the first line of the commit message).
  
  
  Yeah sure I will add that in next version.
  
  > Then, a module docstring explaining the concept at stake (starting by what is a "remotename") and the purpose of the extension would be really nice as a first step.
  
  The hgremotenames (https://bitbucket.org/seanfarley/hgremotenames/src) extension has very good module docstring which I plan to import once I ported enough functionality. If will port it just now, it will be like "it does not do what it says". Or I need to split up the docstring and to port some bit of it with each functionality added.
  And to mention, this is not an extension. This functionality is moving directly to core to improve bookmarks.

INLINE COMMENTS

> dlax wrote in remotenames.py:28
> I don't get the point of the function as it is in this patch. First it does not do what the docstring says. Then it does not return anything nor does it change any "state".

Yeah I agree with you. This series is porting things from hgremotenames extension to core. The extension has all these functionality which I tried breaking up in individual pieces and send as patches.  I will try to improve the ordering of how things are introduced in the next version of this series.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D937

To: pulkit, #hg-reviewers, dlax
Cc: dlax, mercurial-devel


More information about the Mercurial-devel mailing list