Пример #1
0
 def admin_completed(self):
     if self.find_tag is None:
         if self.find is None:
             self.find_tag = Tag(None, '')
         else:
             try:
                 self.find_tag = Tag(None, self.find)
             except ValueError:
                 pass
Пример #2
0
 def set_principal_branch(self, branch_number):
     if self.find is None:
         self.find_tag = Tag(None, branch_number)
Пример #3
0
 def define_tag(self, name, revision):
     if name == self.find:
         self.find_tag = Tag(None, revision)
Пример #4
0
            if path:
                entry.path = path
                try:
                    rcsparse.parse(open(path, 'rb'),
                                   InfoSink(entry, rev, alltags))
                except IOError, e:
                    entry.errors.append("rcsparse error: %s" % e)
                except RuntimeError, e:
                    entry.errors.append("rcsparse error: %s" % e)
                except rcsparse.RCSStopParser:
                    pass

        branches = options['cvs_branches'] = []
        tags = options['cvs_tags'] = []
        for name, rev in alltags.items():
            if Tag(None, rev).is_branch:
                branches.append(name)
            else:
                tags.append(name)

    def itemlog(self, path_parts, rev, sortby, first, limit, options):
        """see vclib.Repository.itemlog docstring

    rev parameter can be a revision number, a branch number, a tag name,
    or None. If None, will return information about all revisions, otherwise,
    will only return information about the specified revision or branch.

    Option values returned by this implementation:

      cvs_tags
        dictionary of Tag objects for all tags encountered