Run() public method

public Run ( ) : int
return int
Esempio n. 1
0
 private void FetchRemote(bool stopOnFailMergeCommit, IGitTfsRemote remote)
 {
     stdout.WriteLine("Fetching from TFS remote '{0}'...", remote.Id);
     DoFetch(remote, stopOnFailMergeCommit);
     if (labels != null && FetchLabels)
     {
         stdout.WriteLine("Fetching labels from TFS remote '{0}'...", remote.Id);
         labels.Run(remote);
     }
 }
Esempio n. 2
0
 private void FetchRemote(bool stopOnFailMergeCommit, IGitTfsRemote remote)
 {
     Trace.TraceInformation("Fetching from TFS remote '{0}'...", remote.Id);
     DoFetch(remote, stopOnFailMergeCommit);
     if (_labels != null && FetchLabels)
     {
         Trace.TraceInformation("Fetching labels from TFS remote '{0}'...", remote.Id);
         _labels.Run(remote);
     }
 }
Esempio n. 3
0
        public int Run(params string[] args)
        {
            authors.Parse(AuthorsFilePath, globals.GitDir);

            foreach (var remote in GetRemotesToFetch(args))
            {
                Trace.WriteLine("Fetching from TFS remote " + remote.Id);
                DoFetch(remote);
                if (labels != null && FetchLabels)
                {
                    Trace.WriteLine("Fetching labels from TFS remote " + remote.Id);
                    labels.Run(remote);
                }
            }
            return(0);
        }