Commits

Pierre-Yves David committed 07db1d5

obsolete: move old format stuff at the end

Comments (0)

Files changed (1)

hgext/obsolete.py

                     ex.hint = hint
                 raise
             return result
+    repo.__class__ = obsoletingrepo
 
 
-    repo.__class__ = obsoletingrepo
+#####################################################################
+### Older format management                                       ###
+#####################################################################
+
+# Code related to detection and management of older legacy format never
+# handled by core
 
 @eh.reposetup
 def _checkoldobsolete(ui, repo):
+    """Detect that a repo still carry some old obsolete format
+    """
     if not repo.local():
         return
     for arg in sys.argv:
             raise util.Abort('old format of obsolete marker detected!\n'
                              'run `hg debugconvertobsolete` once.')
 
-### serialisation
-#############################
-
 def _obsdeserialise(flike):
     """read a file like object serialised with _obsserialise