Closed
Bug 180503
Opened 23 years ago
Closed 20 years ago
Bonsai's query doesn't show checkins made via cvs import
Categories
(Webtools Graveyard :: Bonsai, defect)
Webtools Graveyard
Bonsai
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: justdave, Assigned: bear)
Details
(Whiteboard: [fixed on cls-bonsai-20041001-branch])
Attachments
(1 file, 4 obsolete files)
|
9.16 KB,
patch
|
bear
:
review+
|
Details | Diff | Splinter Review |
If I merge a vendor branch via cvs import, neither the checkin comments nor the
diffs are viewable in Bonsai.
| Reporter | ||
Comment 1•23 years ago
|
||
I'm currently involved in a project that is branching slightly from an open
source version of the same project, and maintaining a copy of it in our own CVS
server. We've been doing weekly imports from the open source version so we can
stay close to the tip and make sure some of our changes can be contributed back
to open source eventually. It's very hard to see how the imports are affecting
our existing code if we can't see which files got merged or view the diffs easily.
If I knew more about how CVS works I'd hack this myself, but I don't unfortunately.
Severity: normal → critical
This patch mostly works but it needs a lot more testing. For some odd reason,
cvs puts all of the import info in the log message so it has to be parsed out
of there.
A current known issue that I'm too tired to track down atm is that
occassionally importing a "new" (I made no changes to the file) version causes
the checkin for a previous import to disappear. The previous import doesn't
show up in bonsai's queries even though the revision info on the file shows all
import tags. I haven't been able to consistently reproduce it but I'm sure
it's operator error as I don't do cvs imports.
I think I resolved the main problem with the previous patch. When files are
changed & imported, their revision number is bumped. If the file isn't changed
& imported, the existing branched revision number gets the new tag but the file
still shows up in the updated list (ie, 'U file' appears in the description
log).
For changed imported files, this new patch checks to see if there's an existing
tag with the current tag's revision number. If there is, then the file hasn't
changed so we don't add it to the checkin list. This means that only the
changed files will show up in the bonsai queries but the full list of imported
files will be in the description log. This might be a bit confusing.
Attachment #161555 -
Attachment is obsolete: true
Comment 5•20 years ago
|
||
hmm, chris any chance of getting this fixed on trunk bonsai. Whiteboard claims it was fixed in a branch of yours a while ago.
| Assignee | ||
Comment 6•20 years ago
|
||
This is just a pass to make the patch work with the existing cvs trunk code.
Still need to install and test it.
| Assignee | ||
Comment 7•20 years ago
|
||
that's why I shouldn't modify code after midnight -- forgot the trailing ;
Attachment #219838 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•20 years ago
|
||
I applied the patch to my test cvs bonsai and ran a number of "cvs import" commands and they all look good. The output generated by the new code matches what is normally generated by dolog for new files and directories.
Now to read the code in detail :)
IIRC, one of the main problems with getting the patch approved for checkin was that the format of the import message wasn't properly documented. What I hacked together seems to work for now but there's no guarantee of future compatibility.
| Assignee | ||
Comment 10•20 years ago
|
||
cls,
if you add some sort of document string to the patch I can review it and get the ball rolling to get this into the source tree.
| Assignee | ||
Comment 11•20 years ago
|
||
just got the thumbs up for me to review it since the change I made was to un-bitrot it by updating the use statement.
cls, if you do post some documentation, I'll add it.
| Assignee | ||
Updated•20 years ago
|
Attachment #219839 -
Flags: review+
| Assignee | ||
Comment 12•20 years ago
|
||
patch landed in revision 1.23 of webtools/bonsai/dolog.pl
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•