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