contrib/synthrepo.py
changeset 36299 238646784294
parent 35400 8a0cac20a1ad
child 36607 c6061cadb400
equal deleted inserted replaced
36298:b1c713ab785d 36299:238646784294
   379             return context.memfilectx(repo, memctx, path, files[path])
   379             return context.memfilectx(repo, memctx, path, files[path])
   380 
   380 
   381         ui.progress(_synthesizing, None)
   381         ui.progress(_synthesizing, None)
   382         message = 'synthesized wide repo with %d files' % (len(files),)
   382         message = 'synthesized wide repo with %d files' % (len(files),)
   383         mc = context.memctx(repo, [pctx.node(), nullid], message,
   383         mc = context.memctx(repo, [pctx.node(), nullid], message,
   384                             files.iterkeys(), filectxfn, ui.username(),
   384                             files, filectxfn, ui.username(),
   385                             '%d %d' % util.makedate())
   385                             '%d %d' % util.makedate())
   386         initnode = mc.commit()
   386         initnode = mc.commit()
   387         if ui.debugflag:
   387         if ui.debugflag:
   388             hexfn = hex
   388             hexfn = hex
   389         else:
   389         else: