diff hgext/convert/hg.py @ 18819:05acdf8e1f23

convert: add closesort algorithm to mercurial sources If you actively work with branches, sometimes you need to close old branches which last commited hundreds revisions ago. After close you will see long lines in graph visually spoiling history. This sort only moves closed revisions as close as possible to parents and does not increase storage size as datesort do.
author Constantine Linnick <theaspect@gmail.com>
date Sun, 24 Mar 2013 00:06:52 +0700
parents 687ed69f6fdf
children 58e782f076e7
line wrap: on
line diff
--- a/hgext/convert/hg.py	Sun Mar 24 16:43:25 2013 -0700
+++ b/hgext/convert/hg.py	Sun Mar 24 00:06:52 2013 +0700
@@ -386,6 +386,9 @@
     def hasnativeorder(self):
         return True
 
+    def hasnativeclose(self):
+        return True
+
     def lookuprev(self, rev):
         try:
             return hex(self.repo.lookup(rev))