# svn版本更新行数统计 **Repository Path**: csecong/statsvn ## Basic Information - **Project Name**: svn版本更新行数统计 - **Description**: 一个用于统计SVN版本库中每次提交更新的行数变化的工具,帮助开发者高效管理代码变更记录。此代码实现统计签入的每个版本号对应的作者、注释、新增行数、删除行数、变更行数,为数据统计提供基准指标,支持范围检索和作者过滤 - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-12 - **Last Updated**: 2026-06-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SVNStats A C# command-line tool for retrieving SVN repository statistics. ## Project Overview SVNStats is a .NET-based command-line tool designed to extract various statistics from SVN repositories, including code line counts and revision details. ## Features - **Line Count Statistics**: Count added and deleted lines within a specified revision range - **Revision Information**: Retrieve detailed information for each revision (author, commit message, line changes) - **Range Query Support**: Query all revisions within a specified version range ## Core Classes Description ### SVNLineStats Stores code line statistics: - `AddLines`: Number of added lines - `DeleteLines`: Number of deleted lines - `TotalLines`: Total number of lines ### SVNRevisionStats Stores detailed information for a single revision: - `Revision`: Revision number - `Author`: Commit author - `Message`: Commit message - `AddLines`: Number of added lines - `DeleteLines`: Number of deleted lines - `TotalLines`: Total number of lines ## Usage ### Prerequisites 1. Ensure the .NET SDK is installed 2. Ensure the SVN command-line client (`svn`) is installed on the system ### Build the Project ```bash cd statsvn dotnet build ``` ### Run Examples ```bash # Get line statistics for a specified revision range dotnet run -- # Get revision details for a specific revision dotnet run -- ``` ## Dependencies - .NET SDK - SVN command-line client ## Project Structure ``` statsvn/ ├── statsvn.slnx # Solution file └── statsvn/ ├── statsvn.csproj # Project file └── Program.cs # Source code ``` ## License MIT License