Closed vadmium closed 7 years ago
Just did a look at the behavior of quilt new and it is creating the .pc/
Quilt pushes the new patch so that it is applied, where as currently your version only creates it as an unapplied new patch. The other day I changed the CLI to match Quilt: https://github.com/bjoernricks/python-quilt/compare/master...vadmium:new/topmost. So far my change only affects the CLI, but not the quilt.new module.
Thanks! I have used your proposed changes and integrated them into quilt/new.py directly in 89ed8ce97b6d11b797c282e3f47a23b68809d395
I am not sure if deleting the .pc/
That seems to work for me, thanks.
The _pcdir.create() call was creating not only the subdirectory to hold original unpatched files, but also created the parent “.pc” directory if it didn’t exist. This was created without the “.version” file. Even though there was nothing in it, the original Quilt complains that the version is out of date.
I don’t understand why you created the empty _pcdir directory, but it seems safe to not create it, since you are removing it if it already existed.