Skip to content

Instantly share code, notes, and snippets.

@schnell18
Last active December 27, 2015 08:49
Show Gist options
  • Save schnell18/7299421 to your computer and use it in GitHub Desktop.
Save schnell18/7299421 to your computer and use it in GitHub Desktop.
find ticket from svn commit message for given list of files
#!/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