[pushrebase] fix for Mercurial 3.4

Summary: The `intersectfiles` API changed.

Test Plan: ran the tests

Reviewers: ericsumner, #sourcecontrol

Reviewed By: ericsumner, #sourcecontrol

Differential Revision: https://phabricator.fb.com/D1966309

Tasks: 6619970

Signature: t1:1966309:1428086453:415a185b71af4812de2f5b6690a5337a5950aab6
This commit is contained in:
Siddharth Agarwal 2015-04-03 11:38:55 -07:00
parent 8b3d2878c1
commit 9a3748f730

View File

@ -221,8 +221,8 @@ def _getrevs(bundle, onto):
# Is there a more efficient way to do this check?
files = reduce(operator.or_, [set(rev.files()) for rev in revs], set())
commonmanifest = tail.p1().manifest().intersectfiles(files)
ontomanifest = onto.manifest().intersectfiles(files)
commonmanifest = tail.p1().manifest()._intersectfiles(files)
ontomanifest = onto.manifest()._intersectfiles(files)
conflicts = ontomanifest.diff(commonmanifest).keys()
if conflicts:
raise util.Abort(_('conflicting changes in %r') % conflicts)