changeset 15965:57738b9130ae stable

revset: remove unreferenced followfile function
author Matt Mackall <mpm@selenic.com>
date Fri, 20 Jan 2012 23:10:13 -0600
parents 6e37b8282aa2
children 610c4434973b
files mercurial/revset.py
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Fri Jan 20 23:05:04 2012 -0600
+++ b/mercurial/revset.py	Fri Jan 20 23:10:13 2012 -0600
@@ -462,16 +462,6 @@
     s |= set([p])
     return [r for r in subset if r in s]
 
-def followfile(repo, subset, x):
-    """``follow()``
-    An alias for ``::.`` (ancestors of the working copy's first parent).
-    """
-    # i18n: "follow" is a keyword
-    getargs(x, 0, 0, _("follow takes no arguments"))
-    p = repo['.'].rev()
-    s = set(repo.changelog.ancestors(p)) | set([p])
-    return [r for r in subset if r in s]
-
 def getall(repo, subset, x):
     """``all()``
     All changesets, the same as ``0:tip``.