"svn log" not showing all recent commits
The problem had to do with my poor understanding of what svn log
was showing. With no other arguments supplied, it outputs log messages from the working copy of the log, not from the actual repository. Thus, issuing svn update
will bring the working copy up-to-date with the repository, and then svn log
will reflect all recent commits. Duh! ;-)
If you would like to see the full log without updating (as I sometimes do when working on an old revision) you can run:
svn log -r HEAD:0
Or, for easier viewing:
svn log -r HEAD:0 | less
I hit the same issue today and was horrified thinking I lost my changes.
It happens just because of weirdness of subversion. There is a concept of working copy that is set to the revision that was checked out originally. Working copy revision is not changed by new commits. svn update
is required to update/sync working copy revision to the repository. Not sure I would like to do that in every scenario.
PS: git
is so much better.