Re: how to get list of changes for a specific tag

Ahmed A <[email protected]> Thu, 19 Jul 2007 21:43:07 -0700 (PDT)
Newsgroups gmane.comp.version-control.bitkeeper.user
Message-ID <[email protected]>
Hallelujah.....Just what I was looking for.  I have
been wrecking my brains, along with a few other
developers, for the past few hours.  And we could not
figure it out from the help pages.

Thank you so much.

Regards,
Ahmed.





--- Rick Smith <[email protected]> wrote:

> Hi,
>=20
> What version of BK are you using.  If bk-4.0 or
> newer,
> you can say 'bk changes -r..TAGNAME' to get a list
> of all changes that make up the repo as of TAGNAME,
> and 'bk changes -rTAG1..TAG2' to get a list of
> changes
> that are in TAG2 but not in TAG1.
>=20
> The '..' is a range, and the empty start of a range
> means
> to go back to the root of the history graph.
>=20
> See 'bk help changes' for a list of the commands.
>=20
> Rick
>=20
> On Thu, Jul 19, 2007 at 09:26:16PM -0700, Ahmed A
> wrote:
> > Hi Larry,
> >=20
> > Thank you for your response.  I will explain what
> I am
> > trying to achieve with an example.
> >=20
> > Assume there are a few tags on the repo - T1, T2,
> T3,
> > T4, T5.   These tags are associated with
> changesets
> > associated to changes in a specific file
> (version.h).=20
> > That way we can tell, T1 tag related to version 1,
> T2
> > to version 2, etc.
> >=20
> > Assume there are a bunch of changesets - C1, C2,
> C3,
> > C4, C5, C6, C7, C8.
> >=20
> > How can I tell, for example, which of these
> changesets
> > are associated with T3 (or for that matter T4).
> >=20
> > Is T3 -> C1 C2 C3 C4
> > or T3 -> C1 C2 C4 C5
> >=20
> > Well, that all depends on the person that did the
> > tagging, and the changesets pulled by that person
> into
> > his local repo before doing the tagging.
> >=20
> > I would like to ask the repo -  "Based on tag t3,
> > which changesets are part of it (in another words,
> > What changesets did the tagger have on his local
> repo
> > when he did the tag)."
> >=20
> > I cannot use timeline of Tags and changesets, as
> those
> > are all based on when they were created on the
> users
> > local repository (not when pushed into
> repository).  A
> > user could have created a changeset prior to a
> tag,
> > but pushed into the repo after the tag was
> created.
> >=20
> > For now, only way I can answer that question, is
> to
> > literally do a close of the repo with tag - T3,
> then
> > do a "bk changes" in it.  :(
> >=20
> > Thank you,
> > Aha.
> >=20
> >=20
> >=20
> >=20
> > --- Larry McVoy <[email protected]> wrote:
> >=20
> > > I think that the "bk set" command is probably
> what
> > > you want but I can't
> > > tell from you description.   Do a "bk help set"
> and
> > > play around with that
> > > and see if that is what you need.  If not, you
> can
> > > send mail here or to
> > > [email protected].
> > >=20
> > > --lm
> > >=20
> > > On Thu, Jul 19, 2007 at 08:50:30PM -0700, Ahmed
> A
> > > wrote:
> > > > Hello,
> > > >=20
> > > > I have a very basic question, as I am learning
> to
> > > use
> > > > BK.  How can one get the list of changesets
> that
> > > are
> > > > part of a tag.  Allow me to explain.  Multiple
> > > users
> > > > have clones of the repository on their pc.=20
> Our
> > > > release engineer decided to create a tag on
> his
> > > pc,
> > > > and then push the tag onto the repository.=20
> Based
> > > on
> > > > just the timestamps it is "impossible" to tell
> > > which
> > > > changeset are part of that tag, all depends on
> > > what
> > > > changeset the release engineer had pulled into
> his
> > > > local repository before he did the tagging.
> > > >=20
> > > > I have figured out the long way to achieve my
> goal
> > > > (Please let me know if I am wrong).  Clone the
> > > repo
> > > > with the specific tag.  Then "cd" to the
> > > directory,
> > > > and issue the command "changes" to get a
> listing
> > > of
> > > > changesets.  Form the list, I can tell if a
> > > specific
> > > > changeset is part of that tag.
> > > >=20
> > > > Is there a shorter way than having to clone
> the
> > > whole
> > > > repo, just issue a command on the repo?
> > > >=20
> > > > Thank you,
> > > > Aha.
> > > >=20
> > > >=20
> > > >     =20
> > >
> >
>
_________________________________________________________________________=
___________
> > > > Park yourself in front of a world of choices
> in
> > > alternative vehicles. Visit the Yahoo! Auto
> Green
> > > Center.
> > > > http://autos.yahoo.com/green_center/=20
> > > >
> _______________________________________________
> > > > Bitkeeper-users mailing list
> > > > [email protected]
> > > >
> > >
> >
>
http://mail.bitmover.com/mailman/listinfo/bitkeeper-users
> > >=20
> > > --=20
> > > ---
> > > Larry McVoy                lm at bitmover.com  =20
>   =20
> > >    http://www.bitkeeper.com
> > >=20
> >=20
> >=20
> >=20
> >     =20
>
_________________________________________________________________________=
___________
> > Park yourself in front of a world of choices in
> alternative vehicles. Visit the Yahoo! Auto Green
> Center.
> > http://autos.yahoo.com/green_center/=20
> > _______________________________________________
> > Bitkeeper-users mailing list
> > [email protected]
> >
>
http://mail.bitmover.com/mailman/listinfo/bitkeeper-users
>=20



      ___________________________________________________________________=
_________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user pa=
nel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite=
.asp?a=3D7=20