Last active
December 27, 2015 08:49
-
-
Save schnell18/7299421 to your computer and use it in GitHub Desktop.
find ticket from svn commit message for given list of files
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
#!/bin/sh | |
# List the tickets which modify the set of files under <your_sub_dir> in the history. | |
for f in $(find <your_sub_dir> -name .svn -a -type d -prune -o -type f -print) | |
do | |
svn log $f | egrep "^XXX-.*:" | cut -d ":" -f1 | sort | uniq >> tickets.tmp | |
done | |
cat tickets.tmp | sort | uniq > tickets.lst |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment