comparison hgext/convert/convcmd.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
comparison
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
74 def readauthormap(ui: "uimod.ui", authorfile, authors=None): 74 def readauthormap(ui: "uimod.ui", authorfile, authors=None):
75 if authors is None: 75 if authors is None:
76 authors = {} 76 authors = {}
77 with open(authorfile, b'rb') as afile: 77 with open(authorfile, b'rb') as afile:
78 for line in afile: 78 for line in afile:
79
79 line = line.strip() 80 line = line.strip()
80 if not line or line.startswith(b'#'): 81 if not line or line.startswith(b'#'):
81 continue 82 continue
82 83
83 try: 84 try:
270 return self.heap.__len__() 271 return self.heap.__len__()
271 272
272 273
273 class converter: 274 class converter:
274 def __init__(self, ui: "uimod.ui", source, dest, revmapfile, opts) -> None: 275 def __init__(self, ui: "uimod.ui", source, dest, revmapfile, opts) -> None:
276
275 self.source = source 277 self.source = source
276 self.dest = dest 278 self.dest = dest
277 self.ui = ui 279 self.ui = ui
278 self.opts = opts 280 self.opts = opts
279 self.commitcache = {} 281 self.commitcache = {}