p4fastimport: use new bookmarks.applychanges API

Summary: Use new bookmarks.applychanges API to silence devel warnings.

Test Plan: python ../../tests/test-p4*

Reviewers: #idi, #mercurial, quark

Reviewed By: quark

Subscribers: medson, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D5485091

Tasks: 20395842

Signature: t1:5485091:1500948768:ab8c0a61e57791d4c871daa221f2ad78381fbe81
This commit is contained in:
David Soria Parra 2017-07-26 14:21:15 -07:00
parent bb9d88ea1a
commit 6c6df646bf

View File

@ -61,10 +61,8 @@ def reposetup(ui, repo):
def writebookmark(tr, repo, revisions, name): def writebookmark(tr, repo, revisions, name):
if len(revisions) > 0: if len(revisions) > 0:
marks = repo._bookmarks
__, hexnode = revisions[-1] __, hexnode = revisions[-1]
marks[name] = repo[hexnode].node() repo._bookmarks.applychanges(repo, tr, [(name, repo[hexnode].node())])
marks.recordchange(tr)
def writerevmetadata(revisions, outfile): def writerevmetadata(revisions, outfile):
"""Write the LFS mappings from OID to a depotpath and it's CLnum into """Write the LFS mappings from OID to a depotpath and it's CLnum into