diff -r 8b09b0864781 -r 369ddc9c0339 mercurial/localrepo.py --- 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)