hgext/convert/hg.py
changeset 45274 0e18861f96ab
parent 44452 9d2b2df2c2ba
child 45275 8e8d513941b4
equal deleted inserted replaced
45270:c8655782ef19 45274:0e18861f96ab
   215         that don't come from the source repo (like if you're merging multiple
   215         that don't come from the source repo (like if you're merging multiple
   216         repositories together).
   216         repositories together).
   217         """
   217         """
   218         anc = [p1ctx.ancestor(p2ctx)]
   218         anc = [p1ctx.ancestor(p2ctx)]
   219         # Calculate what files are coming from p2
   219         # Calculate what files are coming from p2
   220         actions, diverge, rename = mergemod.calculateupdates(
   220         mresult = mergemod.calculateupdates(
   221             self.repo,
   221             self.repo,
   222             p1ctx,
   222             p1ctx,
   223             p2ctx,
   223             p2ctx,
   224             anc,
   224             anc,
   225             branchmerge=True,
   225             branchmerge=True,
   226             force=True,
   226             force=True,
   227             acceptremote=False,
   227             acceptremote=False,
   228             followcopies=False,
   228             followcopies=False,
   229         )
   229         )
   230 
   230 
   231         for file, (action, info, msg) in pycompat.iteritems(actions):
   231         for file, (action, info, msg) in pycompat.iteritems(mresult.actions):
   232             if source.targetfilebelongstosource(file):
   232             if source.targetfilebelongstosource(file):
   233                 # If the file belongs to the source repo, ignore the p2
   233                 # If the file belongs to the source repo, ignore the p2
   234                 # since it will be covered by the existing fileset.
   234                 # since it will be covered by the existing fileset.
   235                 continue
   235                 continue
   236 
   236