[Bitkeeper-users] how to get list of changes for a specific tag
Ahmed A
ahmedcali at yahoo.com
Thu Jul 19 22:11:30 PDT 2007
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 <rick at bitmover.com> wrote:
> Great. Also take a look at 'bk help range'.
>
> Rick
>
> 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.
> >
> > Thank you so much.
> >
> > Regards,
> > Ahmed.
> >
> >
> >
> >
> >
> > --- Rick Smith <rick at bitmover.com> wrote:
> >
> > > Hi,
> > >
> > > 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.
> > >
> > > The '..' is a range, and the empty start of a
> range
> > > means
> > > to go back to the root of the history graph.
> > >
> > > See 'bk help changes' for a list of the
> commands.
> > >
> > > Rick
> > >
> > > On Thu, Jul 19, 2007 at 09:26:16PM -0700, Ahmed
> A
> > > wrote:
> > > > Hi Larry,
> > > >
> > > > Thank you for your response. I will explain
> what
> > > I am
> > > > trying to achieve with an example.
> > > >
> > > > 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).
> > > > That way we can tell, T1 tag related to
> version 1,
> > > T2
> > > > to version 2, etc.
> > > >
> > > > Assume there are a bunch of changesets - C1,
> C2,
> > > C3,
> > > > C4, C5, C6, C7, C8.
> > > >
> > > > How can I tell, for example, which of these
> > > changesets
> > > > are associated with T3 (or for that matter
> T4).
> > > >
> > > > Is T3 -> C1 C2 C3 C4
> > > > or T3 -> C1 C2 C4 C5
> > > >
> > > > 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.
> > > >
> > > > 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)."
> > > >
> > > > 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.
> > > >
> > > > 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. :(
> > > >
> > > > Thank you,
> > > > Aha.
> > > >
> > > >
> > > >
> > > >
> > > > --- Larry McVoy <lm at bitmover.com> wrote:
> > > >
> > > > > 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
> > > > > support at bitmover.com.
> > > > >
> > > > > --lm
> > > > >
> > > > > On Thu, Jul 19, 2007 at 08:50:30PM -0700,
> Ahmed
> > > A
> > > > > wrote:
> > > > > > Hello,
> > > > > >
> > > > > > 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.
>
> > > Our
> > > > > > release engineer decided to create a tag
> on
> > > his
> > > > > pc,
> > > > > > and then push the tag onto the repository.
>
> > > 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.
> > > > > >
> > > > > > 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.
> > > > > >
> > > > > > Is there a shorter way than having to
> clone
> > > the
> > > > > whole
>
=== message truncated ===
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
More information about the Bitkeeper-users
mailing list