Patchwork [12,of,16] ancestor: remove now-unused missingancestors function

login
register
mail settings
Submitter Siddharth Agarwal
Date Nov. 16, 2014, 9:17 a.m.
Message ID <e189800f0eb87e338977.1416129434@devbig136.prn2.facebook.com>
Download mbox | patch
Permalink /patch/6757/
State Accepted
Commit 5c3a29be8faecd9402efa849ff234af7c854007c
Headers show

Comments

Siddharth Agarwal - Nov. 16, 2014, 9:17 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1416012820 28800
#      Fri Nov 14 16:53:40 2014 -0800
# Node ID e189800f0eb87e338977a384bbd54399b6635035
# Parent  96be9921a682a538e358070b78e5ae0f71d1cc44
ancestor: remove now-unused missingancestors function

Callers should use revlog.incrementalmissingrevs instead.

Patch

diff --git a/mercurial/ancestor.py b/mercurial/ancestor.py
--- a/mercurial/ancestor.py
+++ b/mercurial/ancestor.py
@@ -220,10 +220,6 @@ 
         missing.reverse()
         return missing
 
-def missingancestors(revs, bases, pfunc):
-    inc = incrementalmissingancestors(pfunc, bases)
-    return inc.missingancestors(revs)
-
 class lazyancestors(object):
     def __init__(self, pfunc, revs, stoprev=0, inclusive=False):
         """Create a new object generating ancestors for the given revs. Does