mercurial/localrepo.py
changeset 44106 bfaf4c673bec
parent 44105 d86dede17392
child 44107 5a012404503b
--- a/mercurial/localrepo.py	Sun Nov 17 14:47:29 2019 +0100
+++ b/mercurial/localrepo.py	Sun Nov 17 14:54:41 2019 +0100
@@ -1708,6 +1708,10 @@
         '''
         if specs == [b'null']:
             return revset.baseset([nullrev])
+        if specs == [b'.']:
+            quick_data = self._quick_access_changeid.get(b'.')
+            if quick_data is not None:
+                return revset.baseset([quick_data[0]])
         if user:
             m = revset.matchany(
                 self.ui,