|
From: | Aaron Bentley |
Subject: | Re: [Gnu-arch-users] Re: [BUG] feature plan -- Selected inventory |
Date: | Sat, 05 Jun 2004 19:30:52 -0400 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040306) |
Jason McCarty wrote:
Aaron Bentley wrote:Stefan wrote:Exactly. I'd even argue that when a full inventory is necessary, tla should simply signal an error to the effect of "the change you're trying to commit is not restricted to the set of files/dirs you specified".Well, but it should be possible to add or delete files with a limited commit. Some people would even want to allow renames, I'd expect.Sure, there could be an option. You have your default selected commits, which always inventory the whole tree, and your "faster, but error-prone" selected commits, which try to avoid full inventories by guessing the user's intent.
I don't want to introduce error-prone options. I think it would make sense for tla fall back to full inventories in some cases for selected commits.
To support deletes, tla should automatically fall back to a full inventory if an ID disappears. The purpose of the inventory is to distinguish deletes from moves.
Legal adds create a previously-unused ID, so they don't need special support.
If an apparent add contains a duplicate ID, it may be a move. If out-of-selection-moves aren't supported, you can error out.
If out-of-selection moves are permitted, or you want to give a clearer error, you need to fall back to a full inventory to distinguish the two.
Aaron
[Prev in Thread] | Current Thread | [Next in Thread] |