Mercurial > public > mercurial-scm > hg-stable
diff mercurial/manifest.py @ 6743:86e8187b721a
simplify flag handling
add _checklink var to dirstate
introduce dirstate.flagfunc
switch users of util.execfunc/linkfunc to flagfunc
change manifestdict.set to take a flags string
change ctx.fileflags to ctx.flags
change gitmode func to a dict
remove util.execfunc/linkfunc
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 13:46:34 -0500 |
parents | 0231f763ebc8 |
children | 51b0e799352f |
line wrap: on
line diff
--- a/mercurial/manifest.py Thu Jun 26 13:46:33 2008 -0500 +++ b/mercurial/manifest.py Thu Jun 26 13:46:34 2008 -0500 @@ -24,10 +24,8 @@ def linkf(self, f): "test for symlink in manifest flags" return "l" in self.flags(f) - def set(self, f, execf=False, linkf=False): - if linkf: self._flags[f] = "l" - elif execf: self._flags[f] = "x" - else: self._flags[f] = "" + def set(self, f, flags): + self._flags[f] = flags def copy(self): return manifestdict(dict.copy(self), dict.copy(self._flags))