Patchwork [2,of,2] revset: remove no longer used _missingancestors revset

login
register
mail settings
Submitter Siddharth Agarwal
Date July 12, 2014, 7:38 a.m.
Message ID <1ace8830de40861eca57.1405150694@dev1738.prn1.facebook.com>
Download mbox | patch
Permalink /patch/5141/
State Superseded
Commit 1000348b3aea889b8fb16715297e175e1aab5c82
Headers show

Comments

Siddharth Agarwal - July 12, 2014, 7:38 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1405150628 25200
#      Sat Jul 12 00:37:08 2014 -0700
# Node ID 1ace8830de40861eca57ef33055d30725eb36cf8
# Parent  8686541e5772e8cdb30f435fe9b7ca219dee9f2a
revset: remove no longer used _missingancestors revset

This was undocumented.

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -1102,16 +1102,6 @@ 
             return baseset([m])
     return baseset([])
 
-def _missingancestors(repo, subset, x):
-    # i18n: "_missingancestors" is a keyword
-    revs, bases = getargs(x, 2, 2,
-                          _("_missingancestors requires two arguments"))
-    rs = baseset(repo)
-    revs = getset(repo, rs, revs)
-    bases = getset(repo, rs, bases)
-    missing = set(repo.changelog.findmissingrevs(bases, revs))
-    return baseset([r for r in subset if r in missing])
-
 def modifies(repo, subset, x):
     """``modifies(pattern)``
     Changesets modifying files matched by pattern.
@@ -1724,7 +1714,6 @@ 
     "max": maxrev,
     "merge": merge,
     "min": minrev,
-    "_missingancestors": _missingancestors,
     "modifies": modifies,
     "obsolete": obsolete,
     "origin": origin,
@@ -1796,7 +1785,6 @@ 
     "max",
     "merge",
     "min",
-    "_missingancestors",
     "modifies",
     "obsolete",
     "origin",