Title: PatchSet apply will not restore directory in case of failure · Issue #56 · techtonik/python-patch · GitHub
Open Graph Title: PatchSet apply will not restore directory in case of failure · Issue #56 · techtonik/python-patch
X Title: PatchSet apply will not restore directory in case of failure · Issue #56 · techtonik/python-patch
Description: PatchSet.apply needs a context manager to restore the prevdir cwd in case of exception. As it is now, the path remains the new root, which may be puzzling.
Open Graph Description: PatchSet.apply needs a context manager to restore the prevdir cwd in case of exception. As it is now, the path remains the new root, which may be puzzling.
X Description: PatchSet.apply needs a context manager to restore the prevdir cwd in case of exception. As it is now, the path remains the new root, which may be puzzling.
Opengraph URL: https://github.com/techtonik/python-patch/issues/56
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PatchSet apply will not restore directory in case of failure","articleBody":"PatchSet.apply needs a context manager to restore the prevdir cwd in case of exception. As it is now, the path remains the new root, which may be puzzling.\r\n","author":{"url":"https://github.com/stefanoborini","@type":"Person","name":"stefanoborini"},"datePublished":"2019-01-14T14:02:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/56/python-patch/issues/56"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6849ef93-5613-b57f-8553-1f34439a430b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E32:2ABCA7:BD6C81:105AFBA:696A8893 |
| html-safe-nonce | a65d0ff26594d9ee61bf8e88b165d924e6e6eabc1cba4db35d2a79a25c90d065 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTMyOjJBQkNBNzpCRDZDODE6MTA1QUZCQTo2OTZBODg5MyIsInZpc2l0b3JfaWQiOiI0MTU1NzIxMTI1MTM3NjQ3NzYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1300fc0ed678322470b653188c9211a3335e536a021aa078f6f06e3b6a4c7c87 |
| hovercard-subject-tag | issue:398901394 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/techtonik/python-patch/56/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cebe25ee94545a1a9b9a684bf995d278d44d700076312d70af1e2eec0aab487e/techtonik/python-patch/issues/56 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cebe25ee94545a1a9b9a684bf995d278d44d700076312d70af1e2eec0aab487e/techtonik/python-patch/issues/56 |
| og:image:alt | PatchSet.apply needs a context manager to restore the prevdir cwd in case of exception. As it is now, the path remains the new root, which may be puzzling. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stefanoborini |
| hostname | github.com |
| expected-hostname | github.com |
| None | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| turbo-cache-control | no-preview |
| go-import | github.com/techtonik/python-patch git https://github.com/techtonik/python-patch.git |
| octolytics-dimension-user_id | 515889 |
| octolytics-dimension-user_login | techtonik |
| octolytics-dimension-repository_id | 34159484 |
| octolytics-dimension-repository_nwo | techtonik/python-patch |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34159484 |
| octolytics-dimension-repository_network_root_nwo | techtonik/python-patch |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width