mercurial/debugcommands.py
changeset 51377 39f349391898
parent 51232 3551f2a1c963
child 51400 e2dfa403452d
equal deleted inserted replaced
51376:0f3a091d887b 51377:39f349391898
  3436 def debugsetparents(ui, repo, rev1, rev2=None):
  3436 def debugsetparents(ui, repo, rev1, rev2=None):
  3437     """manually set the parents of the current working directory (DANGEROUS)
  3437     """manually set the parents of the current working directory (DANGEROUS)
  3438 
  3438 
  3439     This command is not what you are looking for and should not be used. Using
  3439     This command is not what you are looking for and should not be used. Using
  3440     this command will most certainly results in slight corruption of the file
  3440     this command will most certainly results in slight corruption of the file
  3441     level histories withing your repository. DO NOT USE THIS COMMAND.
  3441     level histories within your repository. DO NOT USE THIS COMMAND.
  3442 
  3442 
  3443     The command update the p1 and p2 field in the dirstate, and not touching
  3443     The command updates the p1 and p2 fields in the dirstate, without touching
  3444     anything else. This useful for writing repository conversion tools, but
  3444     anything else. This useful for writing repository conversion tools, but
  3445     should be used with extreme care. For example, neither the working
  3445     should be used with extreme care. For example, neither the working
  3446     directory nor the dirstate is updated, so file status may be incorrect
  3446     directory nor the dirstate is updated, so file statuses may be incorrect
  3447     after running this command. Only used if you are one of the few people that
  3447     after running this command. Use it only if you are one of the few people who
  3448     deeply unstand both conversion tools and file level histories. If you are
  3448     deeply understands both conversion tools and file level histories. If you are
  3449     reading this help, you are not one of this people (most of them sailed west
  3449     reading this help, you are not one of those people (most of them sailed west
  3450     from Mithlond anyway.
  3450     from Mithlond anyway).
  3451 
  3451 
  3452     So one last time DO NOT USE THIS COMMAND.
  3452     So, one more time, DO NOT USE THIS COMMAND.
  3453 
  3453 
  3454     Returns 0 on success.
  3454     Returns 0 on success.
  3455     """
  3455     """
  3456 
  3456 
  3457     node1 = scmutil.revsingle(repo, rev1).node()
  3457     node1 = scmutil.revsingle(repo, rev1).node()