[merge] Fix commit --strict regression

Robert Collins robertc at robertcollins.net
Thu Nov 23 04:12:16 GMT 2006


On Wed, 2006-11-22 at 11:35 -0500, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Commit --strict is still broken.  John's fix of changing the default
> ignores isn't good enough because it doesn't fix all the bzr installs
> that already have user ignores.
> 
> Since this is a regression, and we're halfway to a release candidate,
> I'm submitting a patch to revert the changes.
> 
> I don't think it's the right approach anyway.  A better approach is not
> to prompt the user until all checks are complete.  One way is to supply
> a callback to commit.  Another approach would be to split commit into
> "prepare" and "finalize" steps.
> 
> I prefer the callback approach, because it doesn't require many changes
> to existing code, like returning a state object.  But with either
> approach, we can delay prompting for the message until we're actually
> ready to write the revision into the knit, so even network failures
> would prevent us from prompting for commit messages that we can't use.

+1 to the merge and the described better approach.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061123/4cbe8129/attachment.pgp 


More information about the bazaar mailing list