3

It seems that performing svn log gives me outdated information, unless I do an svn update first. But sometimes I don't want to update. Is there any way to get an up to date log (at least regarding my own commits) without updating?

1 Answer 1

3

Try:

svn log -r 1:HEAD /path/to/working/copy

Replace revision numbers to your liking.

Valid options:
  -r [--revision] ARG      : ARG (some commands also take ARG1:ARG2 range)
                             A revision argument can be one of:
                                NUMBER       revision number
                                '{' DATE '}' revision at start of the date
                                'HEAD'       latest in repository
                                'BASE'       base rev of item's working copy
                                'COMMITTED'  last commit at or before BASE
                                'PREV'       revision just before COMMITTED
Sign up to request clarification or add additional context in comments.

3 Comments

Thank you. I notice that this gives the newest entries at the bottom, not at the top like a reagular log does. Is that a bug or an oversight on my part?
@dotancohen: Use svn log -r HEAD:1 /path/to/working/copy for reverse order.
Using svn log -r HEAD:BASE -l 10 will get you everything committed since your working copy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.