svn list of files that are modified in local copy

后端 未结 12 1430
无人及你
无人及你 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 00:58

    Below command will display the modfied files alone in windows.

    svn status | findstr "^M"
    
    0 讨论(0)
  • 2021-02-01 00:58

    If you only want the filenames and also want any files that have been added (A).

    svn st | grep ^[AM] | cut -c9-
    

    Note: The first 7 columns are each one character wide followed by a space then the filename.

    0 讨论(0)
  • 2021-02-01 00:59

    The "Check for Modifications" command in tortoise will display a list of all changed files in the working copy. "Commit" will show all changed files as well (that you can then commit). "Revert" will also show changed files (that you can then revert).

    0 讨论(0)
  • 2021-02-01 01:05

    If you really want to list modified files only you can reduce the output of svn st by leading "M" that indicates a file has been modified. I would do this like that:

    svn st | grep ^M
    
    0 讨论(0)
  • 2021-02-01 01:07

    I'm not familiar with tortoise, but with subversion to linux i would type

    svn status
    

    Some googling tells me that tortoise also supports commandline commandos, try svn status in the folder that contains the svn repository.

    0 讨论(0)
  • 2021-02-01 01:09

    I couldn't get svn status -q to work. Assuming you are on a linux box, to see only the files that are modified, run: svn status | grep 'M ' On windows I am not sure what you would do, maybe something with 'FindStr'

    0 讨论(0)
提交回复
热议问题