Fixes a bug, a performance issue, and use 'M' instead of 'U' to be consistent with...
[mw] / src / mw / metadir.py
index abcd6874d5059244a54a108bf2486b701e04f7a5..6c3dc8b0e4c299868d52864ab15f0d77dea5f97e 100644 (file)
@@ -167,7 +167,7 @@ class Metadir(object):
                     if (len(cur_content) != 0) and (cur_content[-1] == '\n'):
                         cur_content = cur_content[:-1]
                     if cur_content != rv['content']:
                     if (len(cur_content) != 0) and (cur_content[-1] == '\n'):
                         cur_content = cur_content[:-1]
                     if cur_content != rv['content']:
-                        status[os.path.relpath(full, self.root)] = 'U'
+                        status[os.path.relpath(full, self.root)] = 'M'
         return status
 
     def diff_rv_to_working(self, pagename, oldrvid=0, newrvid=0):
         return status
 
     def diff_rv_to_working(self, pagename, oldrvid=0, newrvid=0):

Benjamin Mako Hill || Want to submit a patch?