##// END OF EJS Templates
upgrade: write nodemap for manifests too...
Pulkit Goyal -
r47275:63685334 default
parent child Browse files
Show More
@@ -468,6 +468,13 b' def upgrade(ui, srcrepo, dstrepo, upgrad'
468 unfi = srcrepo.unfiltered()
468 unfi = srcrepo.unfiltered()
469 cl = unfi.changelog
469 cl = unfi.changelog
470 nodemap.persist_nodemap(tr, cl, force=True)
470 nodemap.persist_nodemap(tr, cl, force=True)
471 # we want to directly operate on the underlying revlog to force
472 # create a nodemap file. This is fine since this is upgrade code
473 # and it heavily relies on repository being revlog based
474 # hence accessing private attributes can be justified
475 nodemap.persist_nodemap(
476 tr, unfi.manifestlog._rootstore._revlog, force=True
477 )
471 scmutil.writereporequirements(srcrepo, upgrade_op.new_requirements)
478 scmutil.writereporequirements(srcrepo, upgrade_op.new_requirements)
472 else:
479 else:
473 with dstrepo.transaction(b'upgrade') as tr:
480 with dstrepo.transaction(b'upgrade') as tr:
@@ -641,6 +641,8 b' upgrading'
641 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
641 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
642 00changelog-*.nd (glob)
642 00changelog-*.nd (glob)
643 00changelog.n
643 00changelog.n
644 00manifest-*.nd (glob)
645 00manifest.n
644
646
645 $ hg debugnodemap --metadata
647 $ hg debugnodemap --metadata
646 uid: * (glob)
648 uid: * (glob)
General Comments 0
You need to be logged in to leave comments. Login now