diff mercurial/context.py @ 22942:03602f76deee

manifest: rename ambiguously-named set to setflag Just makes it a little clearer what this method does.
author Augie Fackler <raf@durin42.com>
date Fri, 10 Oct 2014 14:09:37 -0400
parents d81792872984
children bdb3349cf7ab
line wrap: on
line diff
--- 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]