Re: how to get list of changes for a specific tag
Ahmed A <[email protected]> Thu, 19 Jul 2007 22:11:30 -0700 (PDT)
| Newsgroups | gmane.comp.version-control.bitkeeper.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Rick, Ok. I will look at the help page, to get a better understanding of "range" If you don't mind, I have another question (somewhat related). I have a changeset number, can I find out the list of tags the changeset belongs to. That way I can quickly know the earliest tag the changeset went into. Using my example below, I would like to ask the repo - "What are the list of tags changeset C4 have been incorporated into." Also, once a changeset has been created and pushed into the repo, can the changeset number change over time, or is the number (value) fixed. Thank you, Aha. --- Rick Smith <[email protected]> wrote: > Great. Also take a look at 'bk help range'. >=20 > Rick >=20 > On Thu, Jul 19, 2007 at 09:43:07PM -0700, Ahmed A > wrote: > > 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. > >=20 > > Thank you so much. > >=20 > > Regards, > > Ahmed. > >=20 > >=20 > >=20 > >=20 > >=20 > > --- Rick Smith <[email protected]> wrote: > >=20 > > > 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.=20 > 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 >=20 =3D=3D=3D message truncated =3D=3D=3D =20 _________________________________________________________________________= ___________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/