mercurial/dirstate.py
changeset 1794 98b6c1cad58b
parent 1755 a8f7791e3680
child 2003 62647394e368
equal deleted inserted replaced
1793:83c6d8355909 1794:98b6c1cad58b
   211                 self.map[f] = ('n', ~umask & 0666, -1, 0)
   211                 self.map[f] = ('n', ~umask & 0666, -1, 0)
   212         self.pl = (parent, nullid)
   212         self.pl = (parent, nullid)
   213         self.markdirty()
   213         self.markdirty()
   214 
   214 
   215     def write(self):
   215     def write(self):
       
   216         if not self.dirty:
       
   217             return
   216         st = self.opener("dirstate", "w", atomic=True)
   218         st = self.opener("dirstate", "w", atomic=True)
   217         st.write("".join(self.pl))
   219         st.write("".join(self.pl))
   218         for f, e in self.map.items():
   220         for f, e in self.map.items():
   219             c = self.copied(f)
   221             c = self.copied(f)
   220             if c:
   222             if c: