mercurial/localrepo.py
changeset 6736 369ddc9c0339
parent 6732 3e532b97d1e1
child 6739 c9fbd6ec3489
--- a/mercurial/localrepo.py	Wed Jun 25 12:53:57 2008 -0700
+++ b/mercurial/localrepo.py	Wed Jun 25 17:33:34 2008 -0500
@@ -442,12 +442,7 @@
 
     def lookup(self, key):
         if key == '.':
-            key, second = self.dirstate.parents()
-            if key == nullid:
-                raise repo.RepoError(_("no revision checked out"))
-            if second != nullid:
-                self.ui.warn(_("warning: working directory has two parents, "
-                               "tag '.' uses the first\n"))
+            return self.dirstate.parents()[0]
         elif key == 'null':
             return nullid
         n = self.changelog._match(key)