コード例 #1
0
        private VssFileInfo GetOrCreateFile(VssItemName name)
        {
            VssFileInfo fileInfo;

            if (!fileInfos.TryGetValue(name.PhysicalName, out fileInfo))
            {
                fileInfo = new VssFileInfo(name.PhysicalName, name.LogicalName);
                fileInfos[name.PhysicalName] = fileInfo;
            }
            return(fileInfo);
        }
コード例 #2
0
ファイル: VssPathMapper.cs プロジェクト: mathewng/vss2svn
 private VssFileInfo GetOrCreateFile(VssItemName name)
 {
     VssFileInfo fileInfo;
     if (!fileInfos.TryGetValue(name.PhysicalName, out fileInfo))
     {
         fileInfo = new VssFileInfo(name.PhysicalName, name.LogicalName);
         fileInfos[name.PhysicalName] = fileInfo;
     }
     return fileInfo;
 }
コード例 #3
0
        public void SetFileVersion(VssItemName name, int version)
        {
            VssFileInfo fileInfo = GetOrCreateFile(name);

            fileInfo.Version = version;
        }