-
Committer:
Michael Ellerman
-
Date:
2005-10-19 05:37:33 UTC
-
mto:
(1185.16.126)
-
mto:
This revision was merged to the branch mainline in
revision
1488.
-
Revision ID:
michael@ellerman.id.au-20051019053733-fdbf18701d7ab8ea
Strict commit was a little .. ah .. too strict, oops :}
branch.unknowns() returns a generator, so we can't do if branch.unknowns(),
it's always True.
if len(list(branch.unknowns())) might look cleanest, but creating the list of
unknowns is not cheap for large numbers of unknown files.
Instead we use a for loop to raise an exception as soon as we get one unknown
back from the generator.
Add more tests to make sure this doesn't break again.