Changeset 1668 in tailor


Ignore:
Timestamp:
09/02/09 23:20:14 (4 years ago)
Author:
Stephen Compall <scompall@…>
Hash name:
20090902212014-61e6f-f083944d4f75720d6986fb246fbed9ff592088f9
Message:

Write tags to Bazaar repositories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/bzr.py

    r1629 r1668  
    2323from bzrlib.branch import Branch 
    2424from bzrlib.bzrdir import BzrDir 
    25 from bzrlib.errors import NoSuchRevision 
     25from bzrlib.errors import NoSuchRevision, TagsNotSupported 
    2626from bzrlib.missing import find_unmerged 
    2727from bzrlib.osutils import normpath, pathjoin 
     
    396396                                  timestamp=timestamp, timezone=timezone) 
    397397 
     398    def _tag(self, tagname, date, author): 
     399        """ 
     400        Tag the current version, if supported. 
     401        """ 
     402        branch = self._working_tree.branch 
     403        try: 
     404            branch.tags.set_tag(tagname, branch.last_revision()) 
     405        except TagsNotSupported: 
     406            pass 
     407 
    398408    def _removePathnames(self, names): 
    399409        """ 
Note: See TracChangeset for help on using the changeset viewer.