D3639: remotenames: add paths argument to remotenames revset

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Fri Jun 29 08:55:15 EDT 2018


yuja added a comment.


  >   > > + at revsetpredicate('remotenames([path, ...])')
  >   >
  >   > My proposal was `remotenames([pattern])`, just like bookmark(), tag(),
  >   >  branch(), etc.
  >   >  If we want a convenient way to specify path prefix, we can
  >   >  add it to the stringmatcher (e.g. 'remotenames("path:server2")'.)
  >   
  >   
  >   No, I don't want to specify a path prefix. remotenames() will take a path only. Do you want to say that we should allow passing full remotenames instead of just path?
  
  Yes, because a remote branch is merely a branch pulled from peer for example,
  and we'll probably want to select it by -r remotebranch("foo/bar") just like
  -r branch("foo/bar") for normal branches. Do I get it wrong? Why is it so
  important to filter by a peer path, not by a branch name itself?

REPOSITORY
  rHG Mercurial

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

To: pulkit, #hg-reviewers
Cc: durin42, yuja, mercurial-devel


More information about the Mercurial-devel mailing list