equal
deleted
inserted
replaced
57 error, |
57 error, |
58 hg, |
58 hg, |
59 patch, |
59 patch, |
60 registrar, |
60 registrar, |
61 scmutil, |
61 scmutil, |
62 util, |
|
63 ) |
62 ) |
|
63 from mercurial.utils import dateutil |
64 |
64 |
65 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
65 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
66 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
66 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
67 # be specifying the version(s) of Mercurial they are tested with, or |
67 # be specifying the version(s) of Mercurial they are tested with, or |
68 # leave the attribute unspecified. |
68 # leave the attribute unspecified. |
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, filectxfn, ui.username(), |
384 files, filectxfn, ui.username(), |
385 '%d %d' % util.makedate()) |
385 '%d %d' % dateutil.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: |
390 hexfn = short |
390 hexfn = short |