equal
deleted
inserted
replaced
108 # Because we store many duplicate commit log messages, reusing strings |
108 # Because we store many duplicate commit log messages, reusing strings |
109 # saves a lot of memory and pickle storage space. |
109 # saves a lot of memory and pickle storage space. |
110 _scache = {} |
110 _scache = {} |
111 |
111 |
112 def scache(s): |
112 def scache(s): |
113 b"return a shared version of a string" |
113 """return a shared version of a string""" |
114 return _scache.setdefault(s, s) |
114 return _scache.setdefault(s, s) |
115 |
115 |
116 ui.status(_(b'collecting CVS rlog\n')) |
116 ui.status(_(b'collecting CVS rlog\n')) |
117 |
117 |
118 log = [] # list of logentry objects containing the CVS state |
118 log = [] # list of logentry objects containing the CVS state |
709 c.synthetic = len(c.entries) == 1 and c.entries[0].synthetic |
709 c.synthetic = len(c.entries) == 1 and c.entries[0].synthetic |
710 |
710 |
711 # Sort files in each changeset |
711 # Sort files in each changeset |
712 |
712 |
713 def entitycompare(l, r): |
713 def entitycompare(l, r): |
714 b'Mimic cvsps sorting order' |
714 """Mimic cvsps sorting order""" |
715 l = l.file.split(b'/') |
715 l = l.file.split(b'/') |
716 r = r.file.split(b'/') |
716 r = r.file.split(b'/') |
717 nl = len(l) |
717 nl = len(l) |
718 nr = len(r) |
718 nr = len(r) |
719 n = min(nl, nr) |
719 n = min(nl, nr) |