Closed
Bug 482079
Opened 16 years ago
Closed 3 years ago
owners.html update needed to get pushed through svn instead of cvs (soon)
Categories
(Webtools Graveyard :: Despot, defect)
Webtools Graveyard
Despot
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: samuel.sidler+old, Assigned: reed)
References
Details
Attachments
(1 file, 3 obsolete files)
|
3.29 KB,
patch
|
Details | Diff | Splinter Review |
We're working on switching mozilla.org from CVS to SVN and will need to make a Despot change that allows it to push to SVN instead of CVS.
Reed will have more details as we know them.
Comment 1•16 years ago
|
||
Updating summary since mirrors.html is updated by despotdaemon too.
Summary: owners.html updates need to get pushed through svn instead of cvs (soon) → owners.html and mirrors.html updates need to get pushed through svn instead of cvs (soon)
| Reporter | ||
Comment 2•16 years ago
|
||
Updating summary... I spun off mirrors.html to bug 510255 since it's a different script/software package.
Summary: owners.html and mirrors.html updates need to get pushed through svn instead of cvs (soon) → owners.html update needed to get pushed through svn instead of cvs (soon)
| Reporter | ||
Comment 3•16 years ago
|
||
Dave: Is this something you can work on in the next week or should I try my hand at Perl?
Updated•16 years ago
|
Assignee: justdave → justdave
| Reporter | ||
Comment 4•16 years ago
|
||
To help Dave, I've created a patch for the template file, based on what's in SVN now.
Attachment #394420 -
Flags: review?(justdave)
| Reporter | ||
Comment 5•16 years ago
|
||
I hate diff.
Attachment #394420 -
Attachment is obsolete: true
Attachment #394421 -
Flags: review?(justdave)
Attachment #394420 -
Flags: review?(justdave)
Comment 6•16 years ago
|
||
Would now also be a good time to change where the owners.html file lives? In
the new site structure owners.html fit better in the About directory along with other information about roles and responsibilities instead of in the top-level directory where it is now.
If this page can be checked into SVN at www.mozilla.org/about/owners.html
I'll set up a redirect so the old link will continue working.
Does anyone know of any reasons not to move the file?
Comment 7•16 years ago
|
||
For timing, we're currently planning on going live with the site on Tuesday, August 25th. If it won't be possible to make this change by then, please let us know.
Comment 8•16 years ago
|
||
justdave, do you have an estimate for when this will be ready? We've decided not to block the site relaunch on this (scheduled for tonight) so it's possible we'll just have a version of the page that's slightly out of date for a short while.
Updated•16 years ago
|
Attachment #394421 -
Flags: review?(justdave) → review+
| Assignee | ||
Comment 9•16 years ago
|
||
I cheated a little and repurposed some variables meant for CVS stuff so that they would work for SVN as well. I also hardcoded "owners.html". Both could be rewritten to be more generic if such a change isn't wanted. However, I'm reasonably sure only Mozilla uses Despot, so such a change wouldn't really hurt anybody. ;)
With this patch, the `repositories` table's row for /www needs to be updated with the following changes:
* `cvsroot` column needs to be changed to "svn+ssh://svn.mozilla.org/projects/www.mozilla.org/trunk"
* `ownerspath` column needs to be changed to "about/"
This assumes despotdaemon has a proper svn account that uses ssh and has ~/.ssh/config configured correctly. Some minor modifications could be made to the patch to make it use password authentication over https:// instead, if needed.
Comment 10•16 years ago
|
||
Comment on attachment 396650 [details] [diff] [review]
use svn instead of cvs - v1 (untested)
> $query = $::db->prepare("SELECT cvsroot FROM repositories WHERE id = ?");
> $query->execute($ownersrepository);
>- $ENV{CVSROOT} = ($query->fetchrow_array())[0];
>+ $svnroot = ($query->fetchrow_array())[0];
That's going to return ":ext:despotdaemon@cvs.mozilla.org:/cvsroot" which I don't think is what our $svnroot is. :)
| Assignee | ||
Updated•16 years ago
|
Assignee: justdave → reed
| Assignee | ||
Updated•16 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•16 years ago
|
Attachment #396650 -
Flags: review?(justdave)
Comment 11•16 years ago
|
||
OK, got this all sorted, attached is the revised and tested patch which is now live in production.
Attachment #394421 -
Attachment is obsolete: true
Attachment #396650 -
Attachment is obsolete: true
Attachment #396650 -
Flags: review?(justdave)
| Assignee | ||
Comment 12•16 years ago
|
||
Comment on attachment 396672 [details] [diff] [review]
combined patch v2 (tested)
>- $regexp =~ s:\*(.):[^/]*\1:g;
>+ $regexp =~ s:\*(.):[^/]*$1:g;
Unrelated change that was just sitting on production, I guess?
>+ $svnroot = "svn+ssh://despotdaemon\@svn.mozilla.org/projects/mozilla.org/trunk";
Put this in a config variable in the config file?
>+ $ownerspath = "about/";
Instead of overwriting $ownerspath, can you just update the database?
Updated•9 years ago
|
Product: Webtools → Webtools Graveyard
Comment 13•3 years ago
|
||
This bug lies at rest in the graveyard.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•