Closes the last gap the account export layout had: a file, directory or link whose name had to change on disk (a leading dot, a : or ?, a name Windows reserves, a clash by case) came back with the changed name.
export-files now writes files.names in the manifest: the real name of each entry whose name changed, keyed by its path on disk. import files restores them. Entries that keep their names claim them first, so a real name that's already taken in its directory, or one that can't be a name (empty, ., .., or with / or NUL), leaves the entry with its name on disk and a warning. A listed link whose name is taken is not made, where before it would have replaced the entry with that name.
The member is new and optional and readers ignore members they don't know, so the layout stays at formatVersion 1. The spec change follows on coffeylabs.org.
Tests: the round-trip fixture gains a hidden file, names with : and ?, a directory that needs renaming, a top-level clash by case and a link named CON; export, import and export again still gives the same tree and manifest. A new test renames a file onto its sibling directory, one to ../escape, one to an empty name and a link onto a file, and checks nothing takes another's place. fmt, clippy and the full suite pass locally.
Closes the last gap the account export layout had: a file, directory or link whose name had to change on disk (a leading dot, a `:` or `?`, a name Windows reserves, a clash by case) came back with the changed name.
`export-files` now writes `files.names` in the manifest: the real name of each entry whose name changed, keyed by its path on disk. `import files` restores them. Entries that keep their names claim them first, so a real name that's already taken in its directory, or one that can't be a name (empty, `.`, `..`, or with `/` or NUL), leaves the entry with its name on disk and a warning. A listed link whose name is taken is not made, where before it would have replaced the entry with that name.
The member is new and optional and readers ignore members they don't know, so the layout stays at formatVersion 1. The spec change follows on coffeylabs.org.
Tests: the round-trip fixture gains a hidden file, names with `:` and `?`, a directory that needs renaming, a top-level clash by case and a link named `CON`; export, import and export again still gives the same tree and manifest. A new test renames a file onto its sibling directory, one to `../escape`, one to an empty name and a link onto a file, and checks nothing takes another's place. fmt, clippy and the full suite pass locally.
export-files lists the real name of every file, directory and link whose name had to change in the manifest's files.names, by its path on disk, and import files restores them. Entries that keep their names claim them first, so a real name already taken in its directory, or one that can't be a name, leaves the entry with its name on disk and a warning; a listed link whose name is taken is not made rather than replacing the entry there. The member is new and optional, so the layout stays at formatVersion 1.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes the last gap the account export layout had: a file, directory or link whose name had to change on disk (a leading dot, a
:or?, a name Windows reserves, a clash by case) came back with the changed name.export-filesnow writesfiles.namesin the manifest: the real name of each entry whose name changed, keyed by its path on disk.import filesrestores them. Entries that keep their names claim them first, so a real name that's already taken in its directory, or one that can't be a name (empty,.,.., or with/or NUL), leaves the entry with its name on disk and a warning. A listed link whose name is taken is not made, where before it would have replaced the entry with that name.The member is new and optional and readers ignore members they don't know, so the layout stays at formatVersion 1. The spec change follows on coffeylabs.org.
Tests: the round-trip fixture gains a hidden file, names with
:and?, a directory that needs renaming, a top-level clash by case and a link namedCON; export, import and export again still gives the same tree and manifest. A new test renames a file onto its sibling directory, one to../escape, one to an empty name and a link onto a file, and checks nothing takes another's place. fmt, clippy and the full suite pass locally.