[dw-free] updating to stable releases
[commit: http://hg.dwscoalition.org/dw-free/rev/bfb6a0650304]
http://bugs.dwscoalition.org/show_bug.cgi?id=3755
1) Add a definition (with comment) of $LJ::USE_STABLE_CODE to doc/config-
local.pl.txt. Turned off by default.
2) Change bin/cvsreport.pl, the vcv wrapper script, to pass the --stable
option to vcv if $LJ::USE_STABLE_CODE is true. Doing it this way allows the
site admin to set it once and forget it, instead of having to remember to
type
--stable on the command line with every update.
3) Specify in cvs/multicvs.conf which of our repositories use the stable
tag. Right now only dw-free is applicable. Again, this tag will be ignored
by default.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3755
1) Add a definition (with comment) of $LJ::USE_STABLE_CODE to doc/config-
local.pl.txt. Turned off by default.
2) Change bin/cvsreport.pl, the vcv wrapper script, to pass the --stable
option to vcv if $LJ::USE_STABLE_CODE is true. Doing it this way allows the
site admin to set it once and forget it, instead of having to remember to
type
--stable on the command line with every update.
3) Specify in cvs/multicvs.conf which of our repositories use the stable
tag. Right now only dw-free is applicable. Again, this tag will be ignored
by default.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/cvsreport.pl
- cvs/multicvs.conf
- doc/config-local.pl.txt
-------------------------------------------------------------------------------- diff -r 1f8a25c0bf0c -r bfb6a0650304 bin/cvsreport.pl --- a/bin/cvsreport.pl Wed Jul 13 21:21:19 2011 +0800 +++ b/bin/cvsreport.pl Wed Jul 13 21:42:18 2011 +0800 @@ -20,6 +20,11 @@ die "\$LJHOME not set.\n" unless -d $ENV{'LJHOME'}; +# check to see if we want only stable releases +eval { require LJ::Config; }; +LJ::Config->load unless $@; # only load config if available +my @stable = $LJ::USE_STABLE_CODE ? ( '--stable' ) : (); + # strip off paths beginning with LJHOME # (useful if you tab-complete filenames) $_ =~ s!\Q$ENV{'LJHOME'}\E/?!! foreach (@ARGV); @@ -31,4 +36,5 @@ exec("$ENV{'LJHOME'}/bin/$vcv_exe", "--conf=$ENV{'LJHOME'}/cvs/multicvs.conf", + @stable, @ARGV); diff -r 1f8a25c0bf0c -r bfb6a0650304 cvs/multicvs.conf --- a/cvs/multicvs.conf Wed Jul 13 21:21:19 2011 +0800 +++ b/cvs/multicvs.conf Wed Jul 13 21:42:18 2011 +0800 @@ -11,7 +11,7 @@ CVSDIR=$LJHOME/cvs # DreamWidth repositories -HG(dw-free) = http://hg.dwscoalition.org/dw-free +HG(dw-free) = http://hg.dwscoalition.org/dw-free @stable HG(vcv) = http://hg.dwscoalition.org/vcv HG(bml) = http://hg.dwscoalition.org/bml HG(perlbal) = http://hg.dwscoalition.org/perlbal diff -r 1f8a25c0bf0c -r bfb6a0650304 doc/config-local.pl.txt --- a/doc/config-local.pl.txt Wed Jul 13 21:21:19 2011 +0800 +++ b/doc/config-local.pl.txt Wed Jul 13 21:42:18 2011 +0800 @@ -23,6 +23,10 @@ # keep this enabled only if this site is a development server $IS_DEV_SERVER = 1; + # change this to "1" if you only want changes that + # have been tested in production on dreamwidth.org + $USE_STABLE_CODE = 0; + # home directory $HOME = $ENV{'LJHOME'}; --------------------------------------------------------------------------------