Getting branch creation date from svn
You can grab the revision information containing this data using svn log
with --stop-on-copy
to omit anything before branch creation, and --limit 1
to omit anything after. --quiet
also helps, to remove the log message, since you're not interested in that:
svn log --limit 1 --stop-on-copy --revision 1:HEAD --quiet
This gives you a bunch of stuff in a string with the date, not the date by itself. To trim it, you need to pipe the output into another command. The answers to How can I extract just the formatted date fields using sed or grep? show how you can use sed, grep, perl, or even the "date" command to accomplish this.