Sample Header Ad - 728x90

bzr get last commit message using bash

1 vote
1 answer
295 views
I am using bash to try and get the last commit message of the most recent revision on a tree. In the documentation the closest thing I found was: bzr log -l 1 --line Which outputs: 45: Firstname Lastname 2013-11-20 some message here I want to use bash regex to extract the message however the fact that the name field can be: Firstname Lastname Firstname Initial Lastname Firstname Lastname Initials Username Username It makes it a lot harder. I don't need you to build me a regex I would just like to know: 1. If bazaar has some command that shows the message (cant find in http://doc.bazaar.canonical.com/bzr.2.5/en/user-reference/index.html) 2. Should I use regex and use the date as the anchor to parse out message?
Asked by rvk (11 rep)
Jun 28, 2013, 03:51 PM
Last activity: Jun 28, 2013, 04:35 PM