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: patch-diff.githubusercontent.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:3f23dfbc-8dfa-1779-a2fd-988618ba8ecd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8740:3DC366:93EE0:CBB49:696E3BDB |
| html-safe-nonce | 73feb9d3c25790fbc154c24bc53cb110094b7218995b74410ad8ceba03a10a0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzQwOjNEQzM2Njo5M0VFMDpDQkI0OTo2OTZFM0JEQiIsInZpc2l0b3JfaWQiOiI2NTgxMjI3OTE0Njk3NTIyMTM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3ab845696f3b15dd0a80c77f83e126070a5c5be6e62d89f9530f4c874f7d4b2e |
| 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 | abd163b7d9c46b4a930c1f194b3178a41170cabf658619a75407b1f9208b96e4 |
| 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 | 9072c2b7e26adf699c492532ab0d77c337ccb0ac |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width