~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Jelmer Vernooij
  • Date: 2010-03-12 02:14:56 UTC
  • mto: This revision was merged to the branch mainline in revision 5106.
  • Revision ID: jelmer@samba.org-20100312021456-6dk2272z7armx043
Put automatic_tag_name on Branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5284
5284
            force=None,
5285
5285
            revision=None,
5286
5286
            ):
5287
 
        from bzrlib.tag import automatic_tag_name
5288
5287
        branch, relpath = Branch.open_containing(directory)
5289
5288
        branch.lock_write()
5290
5289
        self.add_cleanup(branch.unlock)
5303
5302
            else:
5304
5303
                revision_id = branch.last_revision()
5305
5304
            if tag_name is None:
5306
 
                tag_name = automatic_tag_name(branch, revision_id)
 
5305
                tag_name = branch.automatic_tag_name(revision_id)
5307
5306
                if tag_name is None:
5308
5307
                    raise errors.BzrCommandError(
5309
5308
                        "Please specify a tag name.")