~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Aaron Bentley
  • Date: 2007-01-11 17:59:09 UTC
  • mto: This revision was merged to the branch mainline in revision 2239.
  • Revision ID: abentley@panoramicfeedback.com-20070111175909-40z7nyaogn9rs6gr
Update docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
455
455
    path.reverse()
456
456
    return path
457
457
 
 
458
 
458
459
def reserved_id(revision_id):
459
 
    return revision_id.endswith(':')
 
460
    """Determine whether a revision id is reserved
 
461
 
 
462
    :return: True if the revision is is reserved, False otherwise
 
463
    """
 
464
    return isinstance(revision_id, basestring) and revision_id.endswith(':')