~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Matt Nordhoff
  • Date: 2009-03-25 22:01:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4224.
  • Revision ID: mnordhoff@mattnordhoff.com-20090325220111-0kw4q259g9hy6036
Fix docstrings on graph.py's is_empty methods that said they returned true when they were *not* empty.

I'm 99% sure this is correct, but I could be misunderstanding horribly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1486
1486
        return self._keys
1487
1487
 
1488
1488
    def is_empty(self):
1489
 
        """Return true if the search lists 1 or more revisions."""
 
1489
        """Return false if the search lists 1 or more revisions."""
1490
1490
        return self._recipe[3] == 0
1491
1491
 
1492
1492
    def refine(self, seen, referenced):
1560
1560
        return keys
1561
1561
 
1562
1562
    def is_empty(self):
1563
 
        """Return true if the search lists 1 or more revisions."""
 
1563
        """Return false if the search lists 1 or more revisions."""
1564
1564
        if revision.NULL_REVISION in self.heads:
1565
1565
            return len(self.heads) == 1
1566
1566
        else: