mercurial/commands.py
changeset 31589 7e3b145f8247
parent 31588 37a0ad669051
child 31670 adace35f931d
equal deleted inserted replaced
31588:37a0ad669051 31589:7e3b145f8247
  4732         node2 = scmutil.revsingle(repo, change, None).node()
  4732         node2 = scmutil.revsingle(repo, change, None).node()
  4733         node1 = repo[node2].p1().node()
  4733         node1 = repo[node2].p1().node()
  4734     else:
  4734     else:
  4735         node1, node2 = scmutil.revpair(repo, revs)
  4735         node1, node2 = scmutil.revpair(repo, revs)
  4736 
  4736 
  4737     if pats:
  4737     if pats or ui.configbool('commands', 'status.relative'):
  4738         cwd = repo.getcwd()
  4738         cwd = repo.getcwd()
  4739     else:
  4739     else:
  4740         cwd = ''
  4740         cwd = ''
  4741 
  4741 
  4742     if opts.get('print0'):
  4742     if opts.get('print0'):