/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Ian Clatworthy
  • Date: 2009-03-31 00:57:48 UTC
  • mto: (4219.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4220.
  • Revision ID: ian.clatworthy@canonical.com-20090331005748-7x57as7n2v5rxbz5
fix log advice when the # of levels is implicit

Show diffs side-by-side

added added

removed removed

Lines of Context:
1318
1318
        """Get the number of levels to display or 0 for all."""
1319
1319
        if getattr(self, 'supports_merge_revisions', False):
1320
1320
            if self.levels is None or self.levels == -1:
1321
 
                return self.preferred_levels
1322
 
            else:
1323
 
                return self.levels
1324
 
        return 1
 
1321
                self.levels = self.preferred_levels
 
1322
        else:
 
1323
            self.levels = 1
 
1324
        return self.levels
1325
1325
 
1326
1326
    def log_revision(self, revision):
1327
1327
        """Log a revision.