简体   繁体   中英

subversion - get revision number from matching pattern

Problem :

There is some unusual commit made on this file and nobody knows who committed it and svn log /path/of/file gives very long list. That will consume lots of time.

Expected result :

So basically I'm trying to find a way to get the revision number in svn when matching pattern was committed in a file. For example, I have file called master.cf which has a string called foobar , but I want to know the revision number of that commit so that I come to know when that matching string was committed and by whom?

Is there any possible solution for this?

I think you want to use svn blame : svn blame master.cf | grep foobar svn blame master.cf | grep foobar .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM