mercurial/commands.py
branchstable
changeset 32205 b4e1e30528c7
parent 32075 7000196a8178
child 32245 3a755652ce3a
equal deleted inserted replaced
32204:78fb569e2c33 32205:b4e1e30528c7
  2293                 ids[n] = ctx.rev()
  2293                 ids[n] = ctx.rev()
  2294 
  2294 
  2295         # check ancestors for earlier grafts
  2295         # check ancestors for earlier grafts
  2296         ui.debug('scanning for duplicate grafts\n')
  2296         ui.debug('scanning for duplicate grafts\n')
  2297 
  2297 
  2298         for rev in repo.changelog.findmissingrevs(revs, [crev]):
  2298         # The only changesets we can be sure doesn't contain grafts of any
       
  2299         # revs, are the ones that are common ancestors of *all* revs:
       
  2300         for rev in repo.revs('only(%d,ancestor(%ld))', crev, revs):
  2299             ctx = repo[rev]
  2301             ctx = repo[rev]
  2300             n = ctx.extra().get('source')
  2302             n = ctx.extra().get('source')
  2301             if n in ids:
  2303             if n in ids:
  2302                 try:
  2304                 try:
  2303                     r = repo[n].rev()
  2305                     r = repo[n].rev()