1

I am trying to create a P4.MergeData object to use with a resolver. I get this error (in title) when I do:

import P4
md = P4.MergeData()

How do I create this object? Or if I don't need to, how do I merge two files in general?

1 Answer 1

0

Run the p4 resolve command, passing a Resolver object to p4.run_resolve(). Your P4Resolver's resolve() method will be called with a MergeData object that describes the resolve operation.

https://www.perforce.com/manuals/p4python/Content/P4Python/python.p4_resolver.html#Class_P4.Resolver

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.