svn list of files that are modified in local copy

后端 未结 12 1450
无人及你
无人及你 2021-02-01 00:24

I use Tortoise client to checkout/commit my changes to SVN. But I found this little difficult because I\'m not able to find List of all files that are changed in my local copy.

12条回答
  •  温柔的废话
    2021-02-01 01:15

    Using Powershell you can do this:

    # Checks for updates and changes in working copy.
    # Regex: Excludes unmodified (first 7 columns blank). To exclude more add criteria to negative look ahead.
    # -u: svn gets updates
    $regex = '^(?!\s{7}).{7}\s+(.+)';
    svn status -u | %{ if($_ -match $regex){ $_ } };
    

    This will include property changes. These show in column 2. It will also catch other differences in files that show in columns 3-7.

    Sources:

    • svn status: http://svnbook.red-bean.com/en/1.8/svn.ref.svn.c.status.html

    • Regex to match results of svn status: Using powershell and svn to delete unversioned files

提交回复
热议问题