equal
deleted
inserted
replaced
2891 @command('debugsetparents', [], _('REV1 [REV2]')) |
2891 @command('debugsetparents', [], _('REV1 [REV2]')) |
2892 def debugsetparents(ui, repo, rev1, rev2=None): |
2892 def debugsetparents(ui, repo, rev1, rev2=None): |
2893 """manually set the parents of the current working directory |
2893 """manually set the parents of the current working directory |
2894 |
2894 |
2895 This is useful for writing repository conversion tools, but should |
2895 This is useful for writing repository conversion tools, but should |
2896 be used with care. |
2896 be used with care. For example, neither the working copy nor the dirstate |
|
2897 is updated, so file status may be incorrect after running this command. |
2897 |
2898 |
2898 Returns 0 on success. |
2899 Returns 0 on success. |
2899 """ |
2900 """ |
2900 |
2901 |
2901 r1 = scmutil.revsingle(repo, rev1).node() |
2902 r1 = scmutil.revsingle(repo, rev1).node() |