Command to show parents of a revision

Martin Pool mbp at canonical.com
Fri Apr 15 01:31:10 UTC 2011


On 15 April 2011 04:03, Eli Zaretskii <eliz at gnu.org> wrote:
> Is there a command that will show, for a given revision (and
> optionally a file), the parent(s) of that revision?  I can easily show
> the mainline parent ("bzr log -cbefore:NNN"), but it seems to show
> only one parent even for merge commits where there are 2 parents.  How
> can I show both parents in this case?

'bzr log --show-ids -rNNN' will give you the parents revision ids.
'bzr log -n2 -r NNN' will show you the 2nd and later parents.  A
revspec that gets just all the parents would be useful but there isn't
one at present.

Martin



More information about the bazaar mailing list