Created
March 26, 2015 17:26
-
-
Save thinsoldier/c5af3b8eff46cbe344ac to your computer and use it in GitHub Desktop.
How to find out in which SVN revision a file was deleted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to find out in which SVN revision a file was deleted. | |
This will give you the revisions for all the actions (add, delete, remove, modify) concerning the file | |
svn log -v --limit <nr> -v | grep -E '<fileName>|^r' | grep -B 1 <fileName> | |
where: | |
<fileName> - the name of the file or any pattern which matches it | |
<nr> - how many revisions deep into the past in which I want to look for | |
example: | |
svn log -v --limit 300 -v | grep -E '_test2.php|^r' | grep -B 1 _test2.php | |
search log for lines related to _test2.php but don't waste time on any revisions more than 300 revisions earlier than the newest revision (HEAD) | |
http://stackoverflow.com/a/28813671/1154693 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment