GetFilePaths() public method

public GetFilePaths ( string file, string underProject ) : IEnumerable
file string
underProject string
return IEnumerable
Esempio n. 1
0
        private bool WriteRevision(VssPathMapper pathMapper, VssActionType actionType,
                                   string physicalName, int version, string underProject, GitWrapper git)
        {
            var needCommit = false;
            var paths      = pathMapper.GetFilePaths(physicalName, underProject);

            foreach (string path in paths)
            {
                logger.WriteLine("{0}: {1} revision {2}", path, actionType, version);
                if (WriteRevisionTo(physicalName, version, path))
                {
                    // add file explicitly, so it is visible to subsequent git operations
                    git.Add(path);
                    needCommit = true;
                }
            }
            return(needCommit);
        }
Esempio n. 2
0
        private void WriteRevision(VssPathMapper pathMapper, VssActionType actionType,
                                   string physicalName, int version, string underProject)
        {
            var paths = pathMapper.GetFilePaths(physicalName, underProject);

            if (!paths.Any())
            {
                logger.WriteLine("WARNING: {0}: no physical path, {1} revision {2} skipped", physicalName, actionType, version);
            }
            foreach (string path in paths)
            {
                logger.WriteLine("{0}: {1} revision {2}", path, actionType, version);
                if (WriteRevisionTo(physicalName, version, path))
                {
                    // add file explicitly, so it is visible to subsequent vcs operations
                    vcsWrapper.Add(path);
                }
            }
        }
Esempio n. 3
0
 private bool WriteRevision(VssPathMapper pathMapper, VssActionType actionType,
     string physicalName, int version, string underProject, GitWrapper git)
 {
     var needCommit = false;
     var paths = pathMapper.GetFilePaths(physicalName, underProject);
     foreach (string path in paths)
     {
         logger.WriteLine("{0}: {1} revision {2}", path, actionType, version);
         if (WriteRevisionTo(physicalName, version, path))
         {
             // add file explicitly, so it is visible to subsequent git operations
             git.Add(path);
             needCommit = true;
         }
     }
     return needCommit;
 }
Esempio n. 4
0
 private void WriteRevision(VssPathMapper pathMapper, VssActionType actionType,
     string physicalName, int version, string underProject)
 {
     var paths = pathMapper.GetFilePaths(physicalName, underProject);
     if (!paths.Any())
     {
         logger.WriteLine("WARNING: {0}: no physical path, {1} revision {2} skipped", physicalName, actionType, version);
     }
     foreach (string path in paths)
     {
         logger.WriteLine("{0}: {1} revision {2}", path, actionType, version);
         if (WriteRevisionTo(physicalName, version, path))
         {
             // add file explicitly, so it is visible to subsequent vcs operations
             vcsWrapper.Add(path);
         }
     }
 }