mercurial/revset.py
changeset 36607 c6061cadb400
parent 36581 b755eab7e677
child 37001 407934a97bc7
--- a/mercurial/revset.py	Thu Feb 08 23:27:24 2018 +0530
+++ b/mercurial/revset.py	Thu Feb 15 17:18:26 2018 +0100
@@ -30,6 +30,7 @@
     smartset,
     util,
 )
+from .utils import dateutil
 
 # helpers for processing parsed tree
 getsymbol = revsetlang.getsymbol
@@ -658,7 +659,7 @@
     """
     # i18n: "date" is a keyword
     ds = getstring(x, _("date requires a string"))
-    dm = util.matchdate(ds)
+    dm = dateutil.matchdate(ds)
     return subset.filter(lambda x: dm(repo[x].date()[0]),
                          condrepr=('<date %r>', ds))