GetFilePaths() public method

public GetFilePaths ( string file, string underProject ) : IEnumerable
file string
underProject string
return IEnumerable
Ejemplo 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);
        }
Ejemplo 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);
                }
            }
        }
Ejemplo 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;
 }
Ejemplo 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);
         }
     }
 }