Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 6739:c9fbd6ec3489
context: avoid using None for working parent
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 25 Jun 2008 17:35:20 -0500 |
parents | 369ddc9c0339 |
children | b148e9099133 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Jun 25 17:34:28 2008 -0500 +++ b/mercurial/localrepo.py Wed Jun 25 17:35:20 2008 -0500 @@ -483,7 +483,9 @@ f = f[1:] return filelog.filelog(self.sopener, f) - def changectx(self, changeid=None): + def changectx(self, changeid): + if changeid == None: + raise "nope!" return context.changectx(self, changeid) def workingctx(self): @@ -1018,7 +1020,7 @@ if lookup: fixup = [] # do a full compare of any files that might have changed - ctx = self.changectx() + ctx = self.changectx('') mexec = lambda f: 'x' in ctx.fileflags(f) mlink = lambda f: 'l' in ctx.fileflags(f) is_exec = util.execfunc(self.root, mexec)