Create new tag.
        The function call will return 0 if the command success.
346480
def __git_tag(git_tag):
        
        command = ['git', 'tag', '-a', git_tag, '-m', '\'' + git_tag + '\'']
        Shell.msg('Create tag from version ' + git_tag)

        if APISettings.DEBUG:
            Git.__debug(command, False)

        if not call(command):
            return True
        return False
1241780
def new(self, tag_ident, tag_serial=0):
        # type: (int, int) -> None
        '''
        
        '''
        if self._initialized:
            raise pycdlibexception.PyCdlibInternalError('UDF Tag already initialized')

        self.tag_ident = tag_ident
        self.desc_version = 2
        self.tag_serial_number = tag_serial
        self.tag_location = 0  # This will be set later.

        self._initialized = True
1308808
def _write_new_tag_to_init(self):
        
        for line in fileinput.input(self.init_file, inplace=1):
            if line.strip().startswith("__version__"):
                line = "__version__ = \"" + self.tag + "\""
            print(line.strip("\n"))
1072762
def create_tag_and_push(version):
    ""
    assert version not in tags()
    git('config', 'user.name', 'Travis CI on behalf of Austin Bingham')
    git('config', 'user.email', 'austin@sixty-north.com')
    git('config', 'core.sshCommand', 'ssh -i deploy_key')
    git(
        'remote', 'add', 'ssh-origin',
        'git@github.com:sixty-north/cosmic-ray.git'
    )
    git('tag', version)

    subprocess.check_call([
        'ssh-agent', 'sh', '-c',
        'chmod 0600 deploy_key && ' +
        'ssh-add deploy_key && ' +
        # 'git push ssh-origin HEAD:master &&'
        'git push ssh-origin --tags'
    ])
1237895
def _tag_cmds(self, *cmds):
        
        for (method, args) in cmds:
            tagged_cmd = [method, args, self._tag]
            self._tag = self._tag + 1
            yield tagged_cmd
702731
private function createTags()
    {
        if($this->option('tags') || $this->option('tags_per_post_type') || $this->option('all')) {
            $this->comment('Creating dummy tags...');

            $output = (new \TagSeeder())
                ->setCommand($this)
                ->run(
                    ($this->getDefaultOption('tags_per_post_type') ? $this->getDefaultOption('tags_per_post_type') : $this->getDefaultOption('tags')),
                    $this->getDefaultOption('post_type'),
                    ($this->getDefaultOption('tags_per_post_type') ? true : false)
                );

            $this->info($output);
        }

        return $this;
    }
226563
def create_tag(self, tag_name):
        
        # Make sure the local repository exists and supports a working tree.
        self.create()
        self.ensure_working_tree()
        # Create the new tag in the local repository.
        logger.info("Creating tag '%s' in %s ..", tag_name, format_path(self.local))
        self.context.execute(*self.get_create_tag_command(tag_name))
1213897
function createTag(cb) {
  var newTagName = 'v1.0.0';

  async.series([
      async.apply(git.tag, {tag: newTagName, message: newTagName + ' release', annotated: true}),
      async.apply(git.push, {tag: newTagName, remote: remote})
  ], cb);
}
1062712
def create_tag(self, path, ref='HEAD', message=None, force=False, **kwargs):
        
        return TagReference.create(self, path, ref, message, force, **kwargs)
59290
function createEl(tagName) {
    if (svgTags[tagName]) {
        return document.createElementNS('http://www.w3.org/2000/svg', tagName);
    }

    return document.createElement(tagName);
}
247804
def _push_new_tag_to_git(self):
        
        print("Pushing new version to git")            

        ## stage the releasefile and initfileb
        subprocess.call(["git", "add", self.release_file])
        subprocess.call(["git", "add", self.init_file])
        subprocess.call([
            "git", "commit", "-m", "Updating {}/__init__.py to version {}"\
            .format(self.package, self.tag)])

        ## push changes to origin <tracked branch>
        subprocess.call(["git", "push", "origin", self.branch])

        ## create a new tag for the version number on deploy
        if self.deploy:
            subprocess.call([
                "git", "tag", "-a", self.tag,
                "-m", "Updating version to {}".format(self.tag),
                ])
            subprocess.call(["git", "push", "origin"])
507350
function Tag(tagDict){
  if(!(this instanceof Tag))
    return new Tag(tagDict)

  // Check tagDict has the required fields
  checkType('String', 'tagDict.key', tagDict.key, {required: true});
  checkType('String', 'tagDict.value', tagDict.value, {required: true});

  // Init parent class
  Tag.super_.call(this, tagDict)

  // Set object properties
  Object.defineProperties(this, {
    key: {
      writable: true,
      enumerable: true,
      value: tagDict.key
    },
    value: {
      writable: true,
      enumerable: true,
      value: tagDict.value
    }
  })
}
304813
def add_tag(self, task, params={}, **options): 
        
        path = "/tasks/%s/addTag" % (task)
        return self.client.post(path, params, **options)
672708
def get_new_tag(self, api_tag):
        
        return Tag(site_id=self.site_id,
                   wp_id=api_tag["ID"],
                   **self.api_object_data("tag", api_tag))
409076
def set_tag(note_store, my_tags, tag_id):
        
        new_tag = Types.Tag()
        for my_tag in my_tags.split(','):
            new_tag.name = my_tag
            note_tag_id = EvernoteMgr.create_tag(note_store, new_tag)
            if note_tag_id is not False:
                tag_id.append(note_tag_id)
            else:
                return False
        return tag_id
992362
def create_snapshot(self, name, tag):
        
        source = self.local_location
        logger.debug("Create Snapshot: %s -> %s" % (source, name))
        # FIXME: actually create the snapshot via clone command
        if name and tag:
            output_tag = "{}:{}".format(name, tag)
        else:
            output_tag = name or tag
        return self.__class__(repository=source, tag=output_tag)
526626
function label (tagType, count) {
  const icon = tagType ? dom.create('i')
    .class(`qm-changelog-icon-${tagType} qm-changelog-text-${tagType}`)
    .attr('title', tags.displayName[tagType]) : undefined

  return dom.create('div').class(`qm-changelog-label qm-changelog-label-${tagType}`)
    .add(icon)
    .add(dom.create('span').text(count))
}