문제

How shall I structure the arguments of versionControlServer QueryHistory to return the earliest changeset of a specified source location?

Perhaps, there is another way other than QueryHistory?

도움이 되었습니까?

해결책

Query all changes in path returning 1 result, starting from lowest changeset. http://msdn.microsoft.com/en-us/library/ff736442(v=vs.100).aspx

versionControlService.QueryHistory(
            path, 
            VersionSpec.Latest,
            0,
            RecursionType.Full, //look into all subfolders
            null,
            null, //version from - first
            null, //version to - latest => all
            1, //Return at maximum 1 item
            boolIncludeChanges, // Include information on changes done
            false,
            boolIncludeDLInfo,
            true //sort ascending - C1, C2, .. CLatest
)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top