@preserve(fields=('<STR_LIT>', '<STR_LIT>'))<EOL><INDENT>def merge_with_published(self):<DEDENT>
pid, first = self.fetch_published()<EOL>lca = first.revisions[self['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']]<EOL>args = [lca.dumps(), first.dumps(), self.dumps()]<EOL>for arg in args:<EOL><INDENT>del arg['<STR_LIT>'], arg['<STR_LIT>']<EOL><DEDENT>args.append({})<EOL>m = Merger(*args)<EOL>try:<EOL><INDENT>m.run()<EOL><DEDENT>except UnresolvedConflictsException:<EOL><INDENT>raise MergeConflict()<EOL><DEDENT>return patch(m.unified_patches, lca)<EOL>
Merge changes with latest published version.