Closed
Bug 104600
Opened 23 years ago
Closed 22 years ago
template/custom gets pruned on cvs update -dP
Categories
(Bugzilla :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: CodeMachine, Assigned: myk)
References
Details
Attachments
(1 file)
349 bytes,
patch
|
justdave
:
review+
justdave
:
review+
|
Details | Diff | Splinter Review |
The template/custom directory shouldn't be in CVS, it should be created automatically by checksetup.pl.
Comment 1•23 years ago
|
||
I think it should be in CVS, but each bottom-level directory should contain a README file explaining what the directory is for. If checksetup.pl creates it, cvs update -dP will still prune it. The only way to stop that is to actually have files in those directories. (well, we could add it to .cvsignore, but I still like the README idea better)
Summary: Automatically create template/custom. → template/custom gets pruned on cvs update -dP
Comment 2•23 years ago
|
||
I agree -> user interface and myk
Assignee: zach → myk
Component: Installation & Upgrading → User Interface
Reporter | ||
Comment 3•23 years ago
|
||
I think asking people to remember to create the custom directories is a bit much. What if the top level directory had a README, and the bottom level directories were created by checksetup.pl? Otherwise we're just asking to have work done that will be forgotten (although I suppose we could add a test), for little benefit that I can see.
Comment 4•23 years ago
|
||
uhhh... that's exactly what we're trying to do, Matty, is prevent people from having to remember to create them. If we have README files in the bottom-level folders, then cvs will create them at checkout, and nobody has to worry about having to create them. If checksetup.pl does it, and the user doesn't put anything in them, a properly structured cvs update will remove them.
Reporter | ||
Comment 5•23 years ago
|
||
I was talking about trying to prevent requiring developers from creating them.
Comment 6•23 years ago
|
||
ah, but it's too late for that. They're already in cvs, they're just empty.
Reporter | ||
Comment 7•23 years ago
|
||
I was asking for them to be removed. It's not like we're not going to be adding more.
Assignee | ||
Comment 8•23 years ago
|
||
Unfortunately there is no such thing as removing directories in cvs. Once they are there, they are in the repository forever.
Reporter | ||
Comment 9•23 years ago
|
||
Well that makes sense in a way, but can we prevent them being pulled by new users? Is that what this is saying? If so, I'm happy with it as is.
Comment 10•23 years ago
|
||
Why do we want to prevent them from getting pulled by new users? That's exactly the opposite of what this bug is about. We want to make sure they get them. Those directories should be pulled on a checkout, and they should have something in them (probably just a readme file) so that they don't get nuked on a cvs update.
Reporter | ||
Comment 11•23 years ago
|
||
Well given I filed this bug, I figure I have first hand knowledge of what the bug _was_ about anyway. =) What I'm say is that getting checksetup.pl to create directories based on what is in template/default is a more reliable and cleaner solution than having to put them in CVS.
Updated•23 years ago
|
Target Milestone: --- → Bugzilla 2.16
Comment 12•23 years ago
|
||
Easy fix: Create *blank* .cvsignore files in each template/custom directory. cvs update -d template/custom touch template/custom/.cvsignore touch template/custom/attachment/.cvsignore touch template/custom/attachstatus/.cvsignore touch template/custom/entry/.cvsignore touch template/custom/global/.cvsignore touch template/custom/request/.cvsignore find template/custom -name .cvsignore -exec cvs add {} \; cvs commit template/custom
Comment 13•23 years ago
|
||
We are currently trying to wrap up Bugzilla 2.16. We are now close enough to release time that anything that wasn't already ranked at P1 isn't going to make the cut. Thus this is being retargetted at 2.18. If you strongly disagree with this retargetting, please comment, however, be aware that we only have about 2 weeks left to review and test anything at this point, and we intend to devote this time to the remaining bugs that were designated as release blockers.
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
Comment 14•23 years ago
|
||
This is too easy to fix to be pushed out to 2.18. Just before the release, for all the directories that have files in them in template/default, cvs add the corresponding directory in template custom, touch .cvsignore there, and cvs add the .cvsignore file and commit it. Should take about 10 minutes. On the other hand, this will make life easier for all of us. Of course, if this fix is controversial, I understand pushing it out. But I don't see the problem.
Target Milestone: Bugzilla 2.18 → Bugzilla 2.16
Comment 15•23 years ago
|
||
We need to figure out what we're gonna do w/this, and soon :) Are we going to have a complete directory structure that mirrors what's in 'default'? If so, we should add a test that makes sure any directory that exists in template/default also exists in template/custom (and also make sure our tests are pruning :).
Comment 16•23 years ago
|
||
*** Bug 126280 has been marked as a duplicate of this bug. ***
Comment 17•23 years ago
|
||
OK, how about this: We have endico or leaf go in and manually delete everything under and including custom in the cvs repository... drop a .cvsignore file in template itself, and put "custom" in it. checksetup.pl, when run, creates custom to mirror default. We probably need to coordinate this with the i18n reorg, since we're probably going to mutilate that whole hierarchy anyway to make room for a directory level with language codes...
Severity: normal → blocker
Assignee | ||
Comment 18•22 years ago
|
||
Dave: your plan sounds good to me. endico, leaf: can you do this?
Assignee | ||
Comment 19•22 years ago
|
||
I manually deleted the "custom" directory from the repository. This patch adds it to the pre-existing .cvsignore file in the template directory.
Comment 20•22 years ago
|
||
Comment on attachment 77571 [details] [diff] [review] patch: adds custom to .cvsignore file r= justdave x2
Attachment #77571 -
Flags: review+
Assignee | ||
Comment 21•22 years ago
|
||
Checking in template/.cvsignore; /cvsroot/mozilla/webtools/bugzilla/template/.cvsignore,v <-- .cvsignore new revision: 1.2; previous revision: 1.1 done Partial fix checked in. Dropping severity and pushing out to next milestone.
Severity: blocker → normal
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
Comment 22•22 years ago
|
||
should we move this back to 2.16 and close it, and make a new bug for the rest? This now shows up as "ready to check in" under 2.18 because it has a patch with second-review on it.
Comment 23•22 years ago
|
||
This is fixed to my satisfaction.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: Bugzilla 2.18 → Bugzilla 2.16
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•