~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-15 12:43:54 UTC
  • mfrom: (6374.2.2 fix_news_2.5b5)
  • Revision ID: pqm@pqm.ubuntu.com-20111215124354-r79d90ukkqzpfeyf
(gz) Add missing release notes for previously landed branches (Martin
 Packman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
19
17
 
20
18
from bzrlib.lazy_import import lazy_import
21
19
lazy_import(globals(), """
77
75
        return self._revno
78
76
 
79
77
    def __nonzero__(self):
 
78
        # first the easy ones...
80
79
        if self.rev_id is None:
81
80
            return False
 
81
        if self.revno is not None:
 
82
            return True
82
83
        # TODO: otherwise, it should depend on how I was built -
83
84
        # if it's in_history(branch), then check revision_history(),
84
85
        # if it's in_store(branch), do the check below