0

When trying to export a patch for a commit, the resulting patch file doesn't include empty files that were added in the commit.

Steps to reproduce:

  1. Create a new folder and initialize it as an Hg repository.
  2. Add some zero-byte file to that folder, and create an initial commit for that file.
  3. Create a second zero-byte file, and create a second commit for that file.
  4. In Hg Workbench, right-click on either of those commits, and choose Export >> Export Patch.
  5. Open the resultant patch file in Notepad / any text viewer.
  6. Observe that the patch file does not contain any information about the new files that were added.

It seems like the newly added files should be included. If I exported that patch and someone else applied it, they wouldn't really be getting the full changeset, since the new files aren't included.

Can someone tell me what I'm doing wrong, or why it behaves this way? This is not the behavior I expected.

I'm using TortoiseHg 2.7.1, which includes Mercurial 2.5.2.

4

0 回答 0