Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/localrepo.py @ 3795:bd7011246fab
Add "null" pseudo-tag pointing to nullid
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 05 Dec 2006 13:41:42 -0800 |
parents | 8643b9f90b51 |
children | 2aef481ac73c |
line wrap: on
line diff
--- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -376,6 +376,8 @@ class localrepository(repo.repository): key = self.dirstate.parents()[0] if key == nullid: raise repo.RepoError(_("no revision checked out")) + elif key == 'null': + return nullid n = self.changelog._match(key) if n: return n