mercurial/commands.py
changeset 44179 293cab97a766
parent 44178 bd4f666b55a7
child 44194 d4c1501225c4
equal deleted inserted replaced
44178:bd4f666b55a7 44179:293cab97a766
  4879     if node is None:
  4879     if node is None:
  4880         raise error.Abort(_(b'merging with the working copy has no effect'))
  4880         raise error.Abort(_(b'merging with the working copy has no effect'))
  4881 
  4881 
  4882     if opts.get(b'preview'):
  4882     if opts.get(b'preview'):
  4883         # find nodes that are ancestors of p2 but not of p1
  4883         # find nodes that are ancestors of p2 but not of p1
  4884         p1 = repo.lookup(b'.')
  4884         p1 = repo[b'.'].node()
  4885         p2 = node
  4885         p2 = node
  4886         nodes = repo.changelog.findmissing(common=[p1], heads=[p2])
  4886         nodes = repo.changelog.findmissing(common=[p1], heads=[p2])
  4887 
  4887 
  4888         displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
  4888         displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
  4889         for node in nodes:
  4889         for node in nodes: