mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
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:
parent
bb9d88ea1a
commit
6c6df646bf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user