<p>Can you describe the circumstances? Is it that we log file foo/bar and bar was added in rev X, but isn't in rev X-1. Which causes the filter logic to include foo in X but not X-1?</p>
<p>IMO filter was a hack to try to make bzr log dir faster, which helped a lot before 2a, but the new data just does it differently. There are bugs about bzr log dir should be faster, where I've at least done analysis of ways we could tweak it. (Essentially, we expect the number of entries in a subdir to be more than the number of entries in each delta, so we should do delta first, and filter second.)</p>

<p>So, I don't think we are attached to current behaviour.</p>
<p>John<br>
=:-></p>
<div class="gmail_quote">On Oct 15, 2011 2:29 PM, "Jelmer Vernooij" <<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Repository.get_revision_delta() retrieves a TreeDelta object for a<br>
revision. It can, if requested filter out only the requested file ids.<br>
<br>
The docstring for specific_file_ids says:<br>
<br>
        :param specific_fileids: if not None, the result is filtered<br>
          so that only those file-ids, their parents and their<br>
          children are included.<br>
<br>
However, in terms of actual behaviour this seems to mean that a parent<br>
can be in delta.added, even if it wasn't changed in the specified revision.<br>
<br>
This seems wrong to me, but we do actually have a test that verifies<br>
this behaviour (bzrlib/tests/per_repository/test_repository.py:297).<br>
<br>
Is the test correct, or should it be fixed to expect the parent to show<br>
up in .unchanged rather than .added?<br>
<br>
Cheers,<br>
<br>
Jelmer<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iQIcBAEBAgAGBQJOmXyHAAoJEACAbyvXKaRXfLgP/AuvJRJleidIHurJO8cjEi/6<br>
Uh6PFHsQ0NnOimZVol8l+nlvdTnlndRg1TLsRDvE5g1bJ4NtjbKq4ZJI/lFe7gHR<br>
TZrGx+20PXN5/y/fMHLaJiUmtXScqLmfojmZLw1GTGMym+jD5bzXfhWuG2st/5Ow<br>
GFiypRJIHp3jNl7GhZzbWXJy5uQY9ugw3KCvLWu6Ykk5Qgrs0y8q6riMshyL9DmU<br>
4SPj4TVVXx5hyz/FtLIY9MW+eWHVztuEaNsbjbzpu2hroCMq2WnOap7snDvZL00x<br>
4ZGJfS51qv6n6bs9Fy1uC9Q5Tppm8Ag8WVZr+V4jiVm8YBPD2gtAQruGCXMXMe/b<br>
ZnbUTxbM8XEFhVlt87b62LX6m8l/KlUF9Zxp4jx3D+yLmblITDgxq2Tmiz6UokDL<br>
GZbn9byVNWBXh5d02xSWBhFRhpsz5yoxunn2Xg2PlipHysLcrZt9/rVQFgHaAbkn<br>
xvjiPlX3UzmkiyOIxWJ6MCBdc8o51cFXqsPmn5+N/3uLTle+z3pGicHNKMncBoLW<br>
XBjNVmj6ArkKeEFsYLw7rbidB3IVp6HAKOIoi5U0/3VC4E32gyMVNRzykYaTWZFe<br>
U0TFSPIY/BG+04VZqNBE9ze7q5G/GRcNAUA14/XjR2dqF04TO1SeTZRAJ5jYpbTg<br>
ia/wRlmesoiJbZMJlVvK<br>
=SWjv<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
</blockquote></div>