D7764: revset: drop some unused code in the `remote` revset

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Mon Dec 30 08:33:44 EST 2019


Closed by commit rHG6e8678e7223a: revset: drop some unused code in the `remote` revset (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7764?vs=18995&id=19025

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7764/new/

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

AFFECTED FILES
  mercurial/revset.py

CHANGE DETAILS

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -2025,9 +2025,7 @@
         dest = getstring(l[1], _(b"remote requires a repository path"))
     dest = repo.ui.expandpath(dest or b'default')
     dest, branches = hg.parseurl(dest)
-    revs, checkout = hg.addbranchrevs(repo, repo, branches, [])
-    if revs:
-        revs = [repo.lookup(rev) for rev in revs]
+
     other = hg.peer(repo, {}, dest)
     n = other.lookup(q)
     if n in repo:



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


More information about the Mercurial-devel mailing list