Mercurial > hg
comparison mercurial/repair.py @ 29953:94ebf56db04e
strip: clarify that user action is required to recover temp bundle
If strip fails when applying the temporary bundle, the commits in the
temporary bundle have not yet been applied, so the user will almost
definitely want to apply the bundle. We should be more clear to the
user about that than our current "partial bundle stored in...".
Note that we will probably not be able to recover it automatically,
since whatever made it fail (e.g. a hook) will most likely make it
fail again. We need to give control back to the user to fix the
problem before trying again.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 19 Sep 2016 09:14:32 -0700 |
parents | 44ef21621ad7 |
children | 769aee32fae0 |
comparison
equal
deleted
inserted
replaced
29952:44ef21621ad7 | 29953:94ebf56db04e |
---|---|
229 except: # re-raises | 229 except: # re-raises |
230 if backupfile: | 230 if backupfile: |
231 ui.warn(_("strip failed, full bundle stored in '%s'\n") | 231 ui.warn(_("strip failed, full bundle stored in '%s'\n") |
232 % vfs.join(backupfile)) | 232 % vfs.join(backupfile)) |
233 if chgrpfile: | 233 if chgrpfile: |
234 ui.warn(_("strip failed, partial bundle stored in '%s'\n") | 234 ui.warn(_("strip failed, unrecovered changes stored in '%s'\n") |
235 % vfs.join(chgrpfile)) | 235 % vfs.join(chgrpfile)) |
236 ui.warn(_("(fix the problem, then recover the changesets with " | |
237 "\"hg unbundle '%s'\")\n") % vfs.join(chgrpfile)) | |
236 raise | 238 raise |
237 else: | 239 else: |
238 if chgrpfile: | 240 if chgrpfile: |
239 # Remove partial backup only if there were no exceptions | 241 # Remove partial backup only if there were no exceptions |
240 vfs.unlink(chgrpfile) | 242 vfs.unlink(chgrpfile) |