问题
Just starting out with subversion, have set up repos for 3 current projects and all seems good. Subclipse is nice isn't it!
Anyway, what I'd like to have is a nice timeline showing the commits with comments for these repos. They are all hosted on the same server as the websites that they contain.
I've tried trac, which does what I want, but seems a huge overkill as I don't really want the tickets/wiki/etc, just the timeline.
Any ideas?
回答1:
subclipse plugin for eclipse can create a timeline showing revisions, branches, merges, etc. There are probably others as well, though.
http://subclipse.tigris.org/
edit: yup, TortoiseSVN also does this. see http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-revgraph.html
Edit 2: To be fair, neither of the above create timelines per se. They both create revision graphs. The date/time of the commits are available in subclipse (and probably tortoisesvn as well) by hovering over the elements of the graph, (and looking at the revision history table) but strictly speaking they aren't timelines. I'm not aware of anything that produces this information in a timeline format. Hopefully those meet your needs.
回答2:
Use the svn log
command. Add a -v
flag to show what files were modified by each commit. The output is likely to be voluminous, so you will probably want to limit the output to the last 100 or so lines using the -l
flag. Putting it all together:
- Start a command prompt such as
bash
on Linux orcmd.exe
on Windows. cd
your repositorysvn log -l 100 -v
来源:https://stackoverflow.com/questions/929842/any-nice-way-to-generate-a-timeline-view-of-commits-from-subversion