Examples of unsetSection()


Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

          if (oldMerge != null) {
            repoConfig.setString(
                ConfigConstants.CONFIG_BRANCH_SECTION, newName,
                ConfigConstants.CONFIG_KEY_MERGE, oldMerge);
          }
          repoConfig
              .unsetSection(
                  ConfigConstants.CONFIG_BRANCH_SECTION,
                  shortOldName);
          repoConfig.save();
        }
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

          repoConfig.setStringList(
              ConfigConstants.CONFIG_BRANCH_SECTION, newName,
              name, Arrays.asList(values));
        }
        repoConfig.unsetSection(ConfigConstants.CONFIG_BRANCH_SECTION,
            shortOldName);
        repoConfig.save();
      }

      Ref resultRef = repo.getRef(newName);
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

          if (oldMerge != null) {
            repoConfig.setString(
                ConfigConstants.CONFIG_BRANCH_SECTION, newName,
                ConfigConstants.CONFIG_KEY_MERGE, oldMerge);
          }
          repoConfig
              .unsetSection(
                  ConfigConstants.CONFIG_BRANCH_SECTION,
                  shortOldName);
          repoConfig.save();
        }
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

          if (fullName.startsWith(Constants.R_HEADS)) {
            String shortenedName = fullName
                .substring(Constants.R_HEADS.length());
            // remove upstream configuration if any
            final StoredConfig cfg = repo.getConfig();
            cfg.unsetSection(
                ConfigConstants.CONFIG_BRANCH_SECTION,
                shortenedName);
            cfg.save();
          }
        } else
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

    Repository db = null;
    try {
      db = repositoryManager.getRepository(repository.name);
      TicketLabel label = getLabel(repository, oldName);
      StoredConfig config = db.getConfig();
      config.unsetSection(LABEL, oldName);
      config.setString(LABEL, newName, COLOR, label.color);
      config.save();

      for (QueryResult qr : label.tickets) {
        Change change = new Change(createdBy);
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

    }
    Repository db = null;
    try {
      db = repositoryManager.getRepository(repository.name);
      StoredConfig config = db.getConfig();
      config.unsetSection(LABEL, label);
      config.save();

      return true;
    } catch (IOException e) {
      log.error("failed to delete label " + label + " in " + repository, e);
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

    Repository db = null;
    try {
      db = repositoryManager.getRepository(repository.name);
      TicketMilestone milestone = getMilestone(repository, oldName);
      StoredConfig config = db.getConfig();
      config.unsetSection(MILESTONE, oldName);
      config.setString(MILESTONE, newName, STATUS, milestone.status.name());
      config.setString(MILESTONE, newName, COLOR, milestone.color);
      if (milestone.due != null) {
        config.setString(MILESTONE, milestone.name, DUE,
            new SimpleDateFormat(DUE_DATE_PATTERN).format(milestone.due));
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

    }
    Repository db = null;
    try {
      db = repositoryManager.getRepository(repository.name);
      StoredConfig config = db.getConfig();
      config.unsetSection(MILESTONE, milestone);
      config.save();

      milestonesCache.remove(repository.name);

      return true;
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

    // User Defined Properties
    if (repository.customFields != null) {
      if (repository.customFields.size() == 0) {
        // clear section
        config.unsetSection(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS);
      } else {
        for (Entry<String, String> property : repository.customFields.entrySet()) {
          // set field
          String key = property.getKey();
          String value = property.getValue();
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.unsetSection()

    Repository db = null;
    try {
      db = repositoryManager.getRepository(repository.name);
      TicketLabel label = getLabel(repository, oldName);
      StoredConfig config = db.getConfig();
      config.unsetSection(LABEL, oldName);
      config.setString(LABEL, newName, COLOR, label.color);
      config.save();

      for (QueryResult qr : label.tickets) {
        Change change = new Change(createdBy);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.