# HG changeset patch # User Augie Fackler # Date 1412964577 14400 # Node ID 03602f76deeed259044e96b1a0600d2ca19b58d3 # Parent da2758c0aca04fe20fef2797f80c6079099afca5 manifest: rename ambiguously-named set to setflag Just makes it a little clearer what this method does. diff -r da2758c0aca0 -r 03602f76deee mercurial/context.py --- a/mercurial/context.py Sun Oct 12 08:29:31 2014 -0700 +++ b/mercurial/context.py Fri Oct 10 14:09:37 2014 -0400 @@ -1063,7 +1063,7 @@ orig = copied.get(f, f) man[f] = getman(orig).get(orig, nullid) + i try: - man.set(f, ff(f)) + man.setflag(f, ff(f)) except OSError: pass @@ -1389,7 +1389,7 @@ modified, added, removed = s[0:3] for f in modified + added: mf[f] = None - mf.set(f, self.flags(f)) + mf.setflag(f, self.flags(f)) for f in removed: if f in mf: del mf[f] diff -r da2758c0aca0 -r 03602f76deee mercurial/localrepo.py --- a/mercurial/localrepo.py Sun Oct 12 08:29:31 2014 -0700 +++ b/mercurial/localrepo.py Fri Oct 10 14:09:37 2014 -0400 @@ -1407,7 +1407,7 @@ added.append(f) m[f] = self._filecommit(fctx, m1, m2, linkrev, trp, changed) - m.set(f, fctx.flags()) + m.setflag(f, fctx.flags()) except OSError, inst: self.ui.warn(_("trouble committing %s!\n") % f) raise diff -r da2758c0aca0 -r 03602f76deee mercurial/manifest.py --- a/mercurial/manifest.py Sun Oct 12 08:29:31 2014 -0700 +++ b/mercurial/manifest.py Fri Oct 10 14:09:37 2014 -0400 @@ -21,7 +21,8 @@ return self._flags.get(f, "") def withflags(self): return set(self._flags.keys()) - def set(self, f, flags): + def setflag(self, f, flags): + """Set the flags (symlink, executable) for path f.""" self._flags[f] = flags def copy(self): return manifestdict(self, dict.copy(self._flags))