2

I am new to svn. I want to know how to display revision changes checked in between two dates.

I have used this command

svn log -r {2013-11-10}:{2014-01-01} url

It shows me correct output. But I want to display only revision numbers not log messages. I want output like this

r2077
r2078
r2079
...
3
  • Is grep? a good solution for you? Commented Jan 4, 2014 at 18:43
  • svn log -r {2013-11-10}: {2014-01-01} url | grep ... after that?? Commented Jan 4, 2014 at 18:46
  • see below for complete line Commented Jan 4, 2014 at 18:48

3 Answers 3

1

I couldn't get the accepted answer to match. Using cut seemed to work better than extended grep.

svn log -r {2013-11-10}:{2014-01-01} url| grep "r[0-9\s]*\|" |cut -d\| -f1
Sign up to request clarification or add additional context in comments.

Comments

1
svn log -r {2013-11-10}:{2014-01-01} url | sed -n '/^r[0-9]/p' | cut -d '|' -f1

Comments

0

How about something like this:

svn log -r {2013-11-10}:{2014-01-01} url | grep -e "r[0-9]. |" | grep -oE "r[0-9]."

Comments

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.