[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exact branching date?

From: Mark D. Baushke
Subject: Re: Exact branching date?
Date: Thu, 14 Jul 2005 08:18:13 -0700

Hash: SHA1

Sensei <address@hidden> writes:

> Hi. I'm new to branching, I always used it just as tagging versions,
> never joining back with head... so pleas excuse me being naive :)
> I'd like to know if it's possible to know the exact date when a
> branching has been applied, without sticky dates, since I have none
> in my repository.

You should be able to bracket the timeframe, but you will not be able to
get it exactly.

For the upper bound, the closest you can probably come would be the
second immediately before the first commit to the branch. You would want
to use one of the tools that plays with the 'cvs status' or 'cvs log'
output to find the first commit to the branch (cvs2cl is a good choice).

For the lower bound, you would want to take one second after the most
recent commit to the parent branch prior to the upper bound time found
in previous step.

> I'd like to diff some versions with the head, but using diff files
> from the original branching date to the lates branched version, and
> then but it back on head... but I need the branching date! :)

For all practical purposes you should be able to use the upper bound
timestamp. Something like this may be what you want --no-ancestors --follow branch-name --tags --branches \
     --revisions --chrono
   grep -B2 branch-name ChangeLog

If I have misremembered the syntax, I am certain that some one else on
the list will be able to help you.

        Good luck,
        -- Mark
Version: GnuPG v1.2.3 (FreeBSD)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]