mercurial/hg.py
changeset 45577 5c8230ca37f2
parent 45557 2c86b9587740
child 45605 00402df57db7
equal deleted inserted replaced
45576:c1b603cdc95a 45577:5c8230ca37f2
  1059     )
  1059     )
  1060 
  1060 
  1061 
  1061 
  1062 def update(repo, node, quietempty=False, updatecheck=None):
  1062 def update(repo, node, quietempty=False, updatecheck=None):
  1063     """update the working directory to node"""
  1063     """update the working directory to node"""
  1064     stats = updaterepo(repo, node, False, updatecheck=updatecheck)
  1064     stats = mergemod.update(repo[node], updatecheck=updatecheck)
  1065     _showstats(repo, stats, quietempty)
  1065     _showstats(repo, stats, quietempty)
  1066     if stats.unresolvedcount:
  1066     if stats.unresolvedcount:
  1067         repo.ui.status(_(b"use 'hg resolve' to retry unresolved file merges\n"))
  1067         repo.ui.status(_(b"use 'hg resolve' to retry unresolved file merges\n"))
  1068     return stats.unresolvedcount > 0
  1068     return stats.unresolvedcount > 0
  1069 
  1069