Command to show parents of a revision
Eli Zaretskii
eliz at gnu.org
Fri Apr 15 08:58:39 UTC 2011
> From: Martin Pool <mbp at canonical.com>
> Date: Fri, 15 Apr 2011 11:31:10 +1000
> Cc: bazaar at lists.canonical.com
>
> 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.
Thanks. May I suggest that this be reflected in the docs, both of the
switch in the "log" page and in the table in the "log-formats" page
(as it sounds like only --long shows the parents)?
Btw, my initial attempt to use --show-ids didn't seem to work, and I
found that it was because I alias "lg" to "log --line". I think
optional switches that need --long or --short should override --line;
what they do now, i.e. silently do nothing, does not make much sense,
IMO. Should I submit a bug report?
More information about the bazaar
mailing list