[Top][All Lists]

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

Date of tagging

From: Mike Ayers
Subject: Date of tagging
Date: Wed, 10 Jul 2002 13:05:28 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530

Is it possible to find out upon which date a tag was placed? The information does not seem to be stored. Barring that, I believe that I could do something like the following (pseudocode);

TaggedAfter = BeginningOfTime
TaggedBefore = EndOfTime
for each File of FilesInRepositoryWithTag
        if CommitTime( TaggedRevision ) > TaggedAfter
                TaggedAfter = CommitTime( TaggedRevision )
        if RevisionExists( TaggedRevision + 1 )
                if CommitTime( TaggedRevision + 1 ) < TaggedBefore
                        TaggedBefore = CommitTime( TaggedRevision + 1 )

This would at least give me the window in which the tag was stamped, I think. Is there a flaw in my thinking? I'm interested in the answer to this even if there is a way to get a timestamp for the tagging operation itself.



reply via email to

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