Closed Bug 104600 Opened 23 years ago Closed 22 years ago

template/custom gets pruned on cvs update -dP

Categories

(Bugzilla :: User Interface, defect)

2.15
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: CodeMachine, Assigned: myk)

References

Details

Attachments

(1 file)

The template/custom directory shouldn't be in CVS, it should be created
automatically by checksetup.pl.
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
I agree -> user interface and myk
Assignee: zach → myk
Component: Installation & Upgrading → User Interface
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.
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.
I was talking about trying to prevent requiring developers from creating them.
ah, but it's too late for that.  They're already in cvs, they're just empty.
I was asking for them to be removed.  It's not like we're not going to be adding
more.
Unfortunately there is no such thing as removing directories in cvs.  Once they
are there, they are in the repository forever.
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.
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.
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.
Target Milestone: --- → Bugzilla 2.16
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
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
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
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 :).
*** Bug 126280 has been marked as a duplicate of this bug. ***
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
Dave: your plan sounds good to me.

endico, leaf: can you do this?
I manually deleted the "custom" directory from the repository.	This patch adds
it to the pre-existing .cvsignore file in the template directory.
Comment on attachment 77571 [details] [diff] [review]
patch: adds custom to .cvsignore file

r= justdave x2
Attachment #77571 - Flags: review+
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
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.
This is fixed to my satisfaction.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: Bugzilla 2.18 → Bugzilla 2.16
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: