Pull repository changes.

@return the boolean
516300
@SneakyThrows
    public boolean pull() {
        val remotes = this.gitInstance.getRepository().getRemoteNames();
        if (!remotes.isEmpty()) {
            return this.gitInstance.pull()
                .setTimeout(TIMEOUT_SECONDS)
                .setFastForward(MergeCommand.FastForwardMode.FF_ONLY)
                .setRebase(false)
                .setProgressMonitor(new LoggingGitProgressMonitor())
                .call()
                .isSuccessful();
        }
        return false;
    }
141987
def fetch_changes(repo_path, up_commit='master'):
    
    last_up_commit = None
    prevcwd = os.getcwd()
    try:
        gitexe = 'git'
        os.chdir(repo_path)
        old_sources_timestamp = sources_latest_timestamp('.')
        shell_command([gitexe, 'pull'])
        last_up_commit = subprocess.check_output(['git', 'rev-parse', 'HEAD'])
        shell_command([gitexe, 'checkout', up_commit])
        up_commit = subprocess.check_output(['git', 'rev-parse', 'HEAD'])
        new_sources_timestamp = sources_latest_timestamp('.')
        if old_sources_timestamp < new_sources_timestamp:
            with open('.timestamp', 'w') as up_commit_file:
                up_commit_file.write(up_commit)
    finally:
        os.chdir(prevcwd)
    return last_up_commit, up_commit
1080027
public String getRepository() {
        if (!allowReleases && !allowSnapshots) {
            throw new IllegalStateException(
                "Does not make sense to disallow both releases and snapshots.");
        }
        // start with a plus to append default repositories from settings.xml and Maven Cental
        // to the list of repositories defined by options
        final StringBuilder url = new StringBuilder("+");
        url.append(this.repositoryUrl);
        if (allowSnapshots) {
            url.append("@snapshots");
        }
        if (!allowReleases) {
            url.append("@noreleases");
        }
        if (id != null) {
            url.append("@id=");
            url.append(id);
        }
        return url.toString();
    }
347886
public ChangesItem pollAndMergeAll()
   {
      ChangesItem totalChanges = new ChangesItem();

      for (ChangesItem particularChanges = poll(); particularChanges != null; particularChanges = poll())
      {
         totalChanges.merge(particularChanges);
      }

      return totalChanges;
   }
881947
@Override
    protected ChangeSet getFilteredChangeSet(ChangeSet changeSet) {
        changeSet = super.getFilteredChangeSet(changeSet);
        if (changeSet != null && !changeSet.isEmpty() && xmlFlatteningEnabled && reindexItemsOnComponentUpdates) {
            List<String> createdFiles = changeSet.getCreatedFiles();
            List<String> updatedFiles = changeSet.getUpdatedFiles();
            List<String> deletedFiles = changeSet.getDeletedFiles();
            List<String> newUpdatedFiles = new ArrayList<>(updatedFiles);

            if (CollectionUtils.isNotEmpty(createdFiles)) {
                for (String path : createdFiles) {
                    if (isComponent(path)) {
                        addItemsThatIncludeComponentToUpdatedFiles(path, createdFiles, newUpdatedFiles, deletedFiles);
                    }
                }
            }

            if (CollectionUtils.isNotEmpty(updatedFiles)) {
                for (String path : updatedFiles) {
                    if (isComponent(path)) {
                        addItemsThatIncludeComponentToUpdatedFiles(path, createdFiles, newUpdatedFiles, deletedFiles);
                    }
                }
            }


            if (CollectionUtils.isNotEmpty(deletedFiles)) {
                for (String path : deletedFiles) {
                    if (isComponent(path)) {
                        addItemsThatIncludeComponentToUpdatedFiles(path, createdFiles, newUpdatedFiles, deletedFiles);
                    }
                }
            }

            return new ChangeSet(createdFiles, newUpdatedFiles, deletedFiles);
        } else {
            return changeSet;
        }
    }
488603
def get_changeset(self, revision=None):
        
        if isinstance(revision, GitChangeset):
            return revision
        revision = self._get_revision(revision)
        changeset = GitChangeset(repository=self, revision=revision)
        return changeset
565881
public Changelog getChangelog(final boolean useIntegrationIfConfigured)
      throws GitChangelogRepositoryException {
    try (GitRepo gitRepo = new GitRepo(new File(this.settings.getFromRepo()))) {
      return getChangelog(gitRepo, useIntegrationIfConfigured);
    } catch (final IOException e) {
      throw new GitChangelogRepositoryException("", e);
    }
  }
1008362
@Override
    public synchronized boolean load() {
        Either<Void, T> oldData = data;
        String oldKey = versionedKey;
        try {
            if (isOutOfDate()) {
                String newVersionedKey = (String) connection.get(key)
                                                            .get();
                data = Either.right((T) nonAtomicload(newVersionedKey));
                versionedKey = newVersionedKey;
            } else {
                return false;
            }
        } catch (Throwable e) {
            data = oldData;
            versionedKey = oldKey;
            logger.debug(e.getMessage(), e);
            throw ExceptionSoftener.throwSoftenedException(e);
        }
        return true;
    }
525596
public boolean hasUpdates() {
        String hasUpdates = m_resultFields.get(HAS_UPDATES);
        return hasUpdates != null && Boolean.parseBoolean(hasUpdates);
    }
782903
async function getPrFiles(prNo) {
  logger.debug(`getPrFiles(${prNo})`);
  if (!prNo) {
    return [];
  }

  // GET /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/changes
  const values = await utils.accumulateValues(
    `./rest/api/1.0/projects/${config.projectKey}/repos/${
      config.repositorySlug
    }/pull-requests/${prNo}/changes?withComments=false`
  );
  return values.map(f => f.path.toString);
}
195189
public ChangesResult getChanges() {
        final URI uri = this.databaseHelper.changesUri("feed", "normal");
        return client.get(uri, ChangesResult.class);
    }
87127
public List<Member> getChangedMembers()
    {
        return changedPermHolders.stream()
                .filter(p -> p instanceof Member)
                .map(Member.class::cast)
                .collect(Collectors.toList());
    }
210184
public Map<URI, URI> getChangeTable() {
        for (final Map.Entry<URI, URI> e : changeTable.entrySet()) {
            assert e.getKey().isAbsolute();
            assert e.getValue().isAbsolute();
        }
        return Collections.unmodifiableMap(changeTable);
    }
1251058
public boolean isUpdateForVersionName() {
		Set<String> uniques = new HashSet<String>();
		for (VersionHistoryItem item : versionHistoryItems) {
			uniques.add(item.getVersionName());
		}
		return uniques.size() > 1;
	}
1069638
public function hasChanges() {
		$this->begin();
		$lastLine = exec('git status');
		$this->end();
		return (strpos($lastLine, 'nothing to commit')) === false; // FALSE => changes
	}
977501
public boolean isUpdateForVersionCode() {
		Set<Integer> uniques = new HashSet<Integer>();
		for (VersionHistoryItem item : versionHistoryItems) {
			uniques.add(item.getVersionCode());
		}
		return uniques.size() > 1;
	}
803297
public boolean[] getModified()
    {
        boolean bForceUniqueKey = true;
        int iKeyFieldCount = this.getKeyFields(bForceUniqueKey, false);
        boolean[] rgbModified = new boolean[iKeyFieldCount];
        for (int iKeyFieldSeq = DBConstants.MAIN_KEY_FIELD; iKeyFieldSeq < iKeyFieldCount; iKeyFieldSeq++)
        {
            KeyField keyField = this.getKeyField(iKeyFieldSeq, bForceUniqueKey);
            BaseField field = keyField.getField(DBConstants.FILE_KEY_AREA);
            rgbModified[iKeyFieldSeq] = field.isModified();
        }
        return rgbModified;
    }