Is there a command to check if a revision is later than another (ie is a parent or ancestor of another).
Nicholas Allen
nick at bitwig.com
Fri Mar 22 14:30:49 UTC 2013
Thanks John! I'll take a look at that plugin. In a way I feel a simple
built-in command would be useful though. eg bzr is-later revid1 revid2
Because Bazaar is distributed it's hard to tell from revision ids if it
is later or not. In Subversion you can just look at the revision number
and if it's bigger you know it's later. This is obviously not possible
with revision ids so a simple way to compare them would be nice and
something that, to me at least, makes sense in the core Bazaar feature set.
Cheers,
Nick
On 03/22/2013 03:24 PM, John Arbash Meinel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> You might try something with "bzr missing". It lets you pass a
> - --revision argument. So something like:
>
> bzr missing --theirs -r BAD_REVISION OTHER_REVISION
>
> Should let you know if BAD_REVISION has anything that hasn't been
> merged into the current branch.
>
> It is certainly possible with plugins. There is bzrlib.graph that has
> a Graph object that can answer a lot of things like that.
>
> John
> =:->
>
>
>
> On 2013-03-22 11:45, Nicholas Allen wrote:
>> Hi,
>>
>> Our software has an auto bug reporting feature and we know the
>> revision id when the software crashes. If we fix the crash we mark
>> the report as fixed and with the revision it is fixed in. If the
>> report comes in again I would like the auto reporter to check if
>> the version it crashed in is later than the version it was fixed in
>> and if so reopen the issue. Also when I annotate a file it would be
>> nice to be able to ask Bazaar on the command line "Is revision x
>> later than revision y". That way I can also manually check stuff
>> based on the line that was fixed and the revision that annotate
>> shows me.
>>
>> Is this possible or is there a simple plugin for this?
>>
>> Cheers,
>>
>> Nick
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.13 (Cygwin)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlFMaaEACgkQJdeBCYSNAAPpkgCfS6eMZH+rbJbSV6bYkMblHH7o
> kc4AoIf1TvGt4BI2SPsRHa9kpKDEcAoG
> =EEpp
> -----END PGP SIGNATURE-----
More information about the bazaar
mailing list