<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[11361] sites/trunk/wordpress.org/public_html/wp-content/plugins: Revert [11360].</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/11361">11361</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/11361","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>dd32</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-12-13 05:24:09 +0000 (Mon, 13 Dec 2021)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Revert <a href="http://meta.trac.wordpress.org/changeset/11360">[11360]</a>. `svn import` failure.</pre>

<h3>Removed Paths</h3>
<ul>
<li>sites/trunk/wordpress.org/public_html/wp-content/plugins/admin/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginspropsphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/props.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginssvnphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/svn.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginstracwatchphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-watch.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginstracphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/trac.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginspropsphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/props.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/props.php        2021-12-13 05:22:29 UTC (rev 11360)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/props.php  2021-12-13 05:24:09 UTC (rev 11361)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,276 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-namespace WordPressdotorg\Trac\Watcher\Props;
-use function WordPressdotorg\Trac\Watcher\SVN\get_svns;
-
-function from_log( $log ) {
-       $props        = '\s*(?P<props>.+?)';
-       $props_greedy = '\s*(?P<props>.+)';
-       $props_short  = '\s*(?P<props>\S{4,}((\s*and)?\s+\S{4,})?)'; // One or two words 4char+
-       $props_one    = '\s*(?P<props>\S{4,})'; // Single prop, 4char+
-       $sol          = '(^|[.]|\pP)\s*';       // Start of line, actual start of line or sentence start.
-       $real_sol     = '(^|[.])\s*';
-       $eol          = '([.]([^.]|$)|\pP|$)';          // EOL that's a full stop, new line, or randon punctuation.
-       $real_eol     = '([.][^.]|[.]?$)';              // EOL that's actually full stop or new line.
-
-       // These matchers are regular expressions, put inside `#..#im`
-       $matchers = [
-               // These matchers apply in order, once one matches that's the parser used for the commit.
-               'once' => [
-                       "^props(?! to ) {$props_greedy}.?$", // Super basic initial primary matcher, trumps even the next one.
-                       "{$real_sol}props(?! to ) {$props_greedy}{$real_eol}", // Primary matcher, "Props abc, def". Excludes "props to "
-                       "([,.] )props{$props}([,.] )", // Simple inline props matcher, ". props abc." / ", props abc, fixes ..."
-                       "{$sol}props([:]| to ) {$props_greedy}{$eol}",
-                       "([0-9]|\pP)\s+props([:]|\s+to)? {$props_one}( in .+)?(,|{$eol})",
-                       "{$sol}(h/t|hat tip:) {$props_short}{$eol}",
-
-                       // These are starting to get real old... like three-digit core commit old..
-                       "\S\sprops([:]|\s+to)? {$props_short}{$eol}", // Inline props
-                       "\scredit(?! card)([:]|\sto)? {$props_short}", // Credit: ... or Credit to ...
-                       "\s(diff|patch|patches|fix|fixes) from {$props_short}{$eol}", // Fixes from Ryan
-                       "\smad props to {$props_short}{$eol}", // mad props to johny
-                       "\sfrom {$props_short}$", // Super last-ditch effort
-               ],
-
-               // These matchers apply no matter which ones above have matched.
-               // They're intended to catch additional inline mentions.
-               'multiple' => [
-                       "\sunprops {$props_one}", 
-                       "{$sol}(dev)?reviewed[- ]by {$props}{$eol}",
-                       "\sthanks {$props_one}",
-               ]
-       ];
-
-       // Cleanup the log
-
-       // Remove anything non-printable.
-       $log = preg_replace( "![^[:print:]\n]!", '', $log );
-
-       // Replace all whitespace with standard spaces.
-       $log = preg_replace( '![\pZ]+$!u', ' ', $log );
-
-       // remove any ticket references and other irrelevant things.
-       $log = preg_replace( '!(fixes|fixed|see|closes|merges):?\s*([[]\d{3,}[]]|r\d{2,}|#[a-z]*\d{2,}|https?://\S+)( for (trunk|[0-9.]+))?!i', '', $log ); // fixes [1234] for 5.6, closes #1234, see #meta12345
-       $log = preg_replace( '!(#\d+|[[]\d+[]])!', '', $log ); // Tickets, Revisions not matched above
-       $log = preg_replace( '!merges\s+\S+!i', '', $log );
-       $log = preg_replace( '![ ]{2,}!', ' ', $log );
-       
-       // Trim out any URLs.
-       $log = preg_replace( '!https?://\S+!i', '', $log );
-       $log = trim( $log, ",. \n\t" );
-
-       // Fetch any lines related.
-       $data = [];
-       foreach ( $matchers['once'] as $regex ) {
-               if ( preg_match_all( '#' . $regex . '#im', $log, $m ) ) {
-                       $data = array_merge( $data, $m['props'] );
-                       break;
-               }
-       }
-       foreach ( $matchers['multiple'] as $regex ) {
-               if ( preg_match_all( '#' . $regex . '#im', $log, $m ) ) {
-                       $data = array_merge( $data, $m['props'] );
-               }
-       }
-
-       if ( ! $data ) {
-               return [];
-       }
-
-       $users = [];
-       foreach ( $data as $d ) {
-               // Trim out any 'for ...' & '(for...)' & '( fo ...)'
-               $d = preg_replace( '!\b[(]?for? (now|.{4,}|[0-9.]{2,})([.]|$)!is', '', $d );
-
-               // Trim out any '$user with...'
-               $d = preg_replace( '!^(.{5,})\s*with .{4,}([.][^.]|$)!is', '$1', $d );
-
-               // Trim any odd whitespace and punctuation.
-               $d = trim( $d, ",. \n\t" );
-
-               // Reduce any " and " down to a comma list.
-               $d = preg_replace( '!(\w) and !i', '$1, ', $d );
-
-               // Commas or Slashes? Assume separated users.
-               if ( false !== strpos( $d, ',' ) || false !== strpos( $d, '/' ) ) {
-                       $users = array_merge(
-                               $users,
-                               preg_split( '![,/]\s*!', $d )
-                       );
-               }
-               // Words prefixed by @? User list.
-               else if ( preg_match( '!^(@(\S+\s*))*$!u', $d ) ) {
-                       $users = array_merge(
-                               $users,
-                               // We'll trim the @ off later.
-                               preg_split( '!\s+!u', $d )
-                       );
-               }
-               // no spaces? Just a username?
-               else if ( false === strpos( $d, ' ' ) ) {
-                       $users[] = $d;
-               }
-               else {
-                       // At this point, we have to decide if this is a list of "user user user" or "user with spaces"
-
-                       $user_list = preg_split( '!\s+!u', $d );
-
-                       // If it's only 2 words, and we can find a matching user, trust it.
-                       if (
-                               2 == count( $user_list ) &&
-                               preg_match( '!^[a-z ]+$!i', $d ) &&
-                               find_user_id( $d )
-                       ) {
-                               $users[] = $d;
-                       } else {
-                               // Multiple spaces is more likely a list of users.
-                               $users = array_merge(
-                                       $users,
-                                       $user_list
-                               );
-                       }
-               }
-
-       }
-
-       // Cleanup users.
-       $users = array_map(
-               function( $u ) {
-                       // Trim leading @
-                       $u = ltrim( $u, '@' );
-
-                       // Trim leading words.. these should never be here, but sometimes slip in with duplicate `props a props b`
-                       $words = [
-                               'and', 'props',
-                       ];
-                       $u = preg_replace( '!((' . implode( '|', $words ) . ')\s+)*!i', '', $u );
-
-                       // Trim trailing punctuation (if it starts without punctuation)
-                       $u = preg_replace( '!^([a-z0-9].{4,})[\pP\s]+$!iu', '$1', $u );
-
-                       // Does it start with a expected character, but have space followed by rand punctuation?
-                       $u = preg_replace( '!^([a-z0-9]\S+)\s\pP.*$!i', '$1', $u );
-
-                       return $u;
-               },
-               $users
-       );
-
-       // Filter the users.
-       $users = array_filter(
-               $users,
-               function( $u ) use( $users ) {
-                       static $blacklist = [
-                               'list', 'for', 'fo', 'in', 'to', 'and', 'as', 'an', 'up', 'and', '&',
-                               'contributors', 'others',
-                               'et al', 'et alii', 'via',
-                               'fixes', 'fix', 'see', 'closes', 'props',
-                               '`public`', // r31078
-                               'Team', // r31975
-                               'Gandalf', // r31975
-                               'dependabot', // r48501
-                               'everyone-in-the-core-updates-channel', // r48678
-                       ];
-
-                       if ( in_array( $u, $blacklist, true ) ) {
-                               return false;
-                       }
-
-                       // Exclude purely numeric users.
-                       // There exist a few, but they're so far between.
-                       if ( is_numeric( $u ) ) {
-                               return false;
-                       }
-
-                       // Ignore super-short names, probably mis-match.
-                       if ( strlen( $u ) < 3 ) {
-                               return false;
-                       }
-
-                       // Ignore pure punctuation.
-                       if ( preg_match( '!^[\pP]+$!u', $u ) ) {
-                               return false;
-                       }
-
-                       // If a user has more than 2 spaces, lets consider that invalid?
-                       if ( substr_count( $u, ' ' ) > 2 ) {
-                               return false;
-                       }
-
-                       // If the user is the start of another user, skip it.
-                       // ie. [ 'john', 'john.smith' ] => [ 'john.smith' ]
-                       foreach ( $users as $u2 ) {
-                               if (
-                                       $u != $u2 &&
-                                       substr( $u2, 0, strlen( $u ) ) === $u
-                               ) {
-                                       return false;
-                               }
-                       }
-
-                       return true;
-               }
-       );
-
-       return array_unique( $users );
-}
-
-/**
- * Find a user ID for the user being prop'd.
- */
-function find_user_id( $prop, $svn = array() ) {
-       global $wpdb;
-
-       // Profile URL - This is primarily used via the Admin UI to assign ownership of a prop.
-       if (
-               preg_match( '!^https?://profiles.wordpress.org/(?P<user>[^/]+)/?$!', $user, $m ) &&
-               ( $user = get_user_by( 'slug', $m['user'] ) )
-       ) {
-               return $user->ID;
-       }
-
-       // User login
-       if ( $user = get_user_by( 'login', $prop ) ) {
-               return $user->ID;
-       }
-
-       // User nicename
-       if ( $user = get_user_by( 'slug', $prop ) ) {
-               return $user->ID;
-       }
-
-       // Email
-       if (
-               is_email( $prop ) &&
-               ( $user = get_user_by( 'email', $prop ) )
-       ) {
-               return $user->ID;
-       }
-
-       // User ID?
-       if (
-               is_numeric( $prop ) &&
-               ( $user = get_user_by( 'id', $prop ) )
-       ) {
-               return $user->ID;
-       }
-
-       // previous props?
-       // This works great to catch typo's, correct it manually once and it'll be caught next time.
-       foreach ( get_svns() as $svn ) {
-               $props_table = ['props_table'] ?? false;
-               if (
-                       $props_table &&
-                       ( $id = $wpdb->get_var( $wpdb->prepare( "SELECT user_id FROM {$props_table} WHERE prop_name = %s LIMIT 1", $prop ) ) )
-               ) {
-                       return (int) $id;
-               }
-       }
-
-       // GitHub?
-       $github = $wpdb->get_var( $wpdb->prepare( "SELECT user_id FROM wporg_github_users WHERE github_user = %s LIMIt 1", $prop ) );
-       if ( $github ) {
-               return (int) $github;
-       }
-
-       return false;
-}
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginssvnphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/svn.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/svn.php  2021-12-13 05:22:29 UTC (rev 11360)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/svn.php    2021-12-13 05:24:09 UTC (rev 11361)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,180 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-namespace WordPressdotorg\Trac\Watcher\SVN;
-use function WordPressdotorg\Trac\Watcher\Props\from_log as props_from_log;
-use function WordPressdotorg\Trac\Watcher\Props\find_user_id;
-
-const MAX_REVISIONS = 250;
-
-add_action( 'import_revisions_from_svn', function() {
-       foreach ( get_svns() as $svn ) {
-               import_revisions( $svn );
-       }
-} );
-
-function get_svns() {
-       return [
-               'core' => [
-                       'slug'        => 'core',
-                       'name'        => 'Core',
-                       'url'         => 'https://develop.svn.wordpress.org',
-                       'trac'        => 'https://core.trac.wordpress.org',
-                       'rev_table'   => 'trac_core_revisions',
-                       'props_table' => 'trac_core_props',
-               ],
-               'meta' => [
-                       'slug'        => 'meta',
-                       'name'        => 'Meta',
-                       'url'         => 'https://meta.svn.wordpress.org',
-                       'trac'        => 'https://meta.trac.wordpress.org',
-                       'rev_table'   => 'trac_meta_revisions',
-                       'props_table' => 'trac_meta_props',
-               ]
-       ];
-}
-
-function import_revisions( $svn ) {
-       global $wpdb;
-
-       $svn_url     = $svn['url'];
-       $slug        = $svn['slug'];
-       $db_table    = $svn['rev_table'];
-       $props_table = $svn['props_table'] ?? false;
-
-       $last_revision = $wpdb->get_var( "SELECT max(id) FROM {$db_table}" );
-       if ( ! is_numeric( $last_revision ) ) {
-               trigger_error( "Can't find max row for {$db_table} to import {$svn_url} revisions.", E_USER_WARNING );
-               return false;
-       }
-
-       $command = sprintf(
-               'svn log %s -r %d:HEAD --limit %d --xml -v 2>/dev/null',
-               esc_url( $svn_url ),
-               (int) $last_revision,
-               (int) MAX_REVISIONS
-       );
-
-       $xml_internal_errors = libxml_use_internal_errors( true );
-       $xml                 = simplexml_load_string( shell_exec( $command ) );
-       libxml_use_internal_errors( $xml_internal_errors );
-
-       if ( ! $xml ) {
-               // Malformed XML, happens when SVN hits an error prior to finishing output (or the revision range is invalid)
-               return false;
-       }
-
-       $processed = 0;
-       foreach ( $xml as $change ) {
-               $id     = (int) $change->attributes()['revision'];
-               $author = trim( (string) $change->author );
-               $msg    = trim( (string) $change->msg );
-               $date   = gmdate( 'Y-m-d H:i:s', strtotime( $change->date ) );
-
-               // No need to re-process the last revision.
-               if ( $id <= $last_revision ) {
-                       continue;
-               }
-
-               echo "Importing {$id} \n";
-
-               $paths  = (array) $change->paths->path;
-               $paths  = array_filter( $paths, 'is_string' ); // hacky, to remove attributes array, leaving just paths.
-
-               $branch = get_branch_from_paths( $paths );
-
-               // Short summary - First line, first sentence, max 32 words.
-               $summary = explode( "\n", $msg )[0];
-               if ( $pos = strpos( $summary, '. ' ) ) {
-                       $summary = substr( $summary, 0, $pos + 1 );
-               }
-               $summary = wp_trim_words( $summary, 32 );
-
-               $data = [
-                       'id'      => $id,
-                       'author'  => $author,
-                       'summary' => $summary,
-                       'message' => $msg,
-                       'date'    => $date,
-                       'branch'  => $branch,
-               ];
-
-               // Fetch the version for core...
-               if ( 'core' === $slug ) {
-                       $data['version'] = get_wp_version( $svn_url, $branch, $id );
-               }
-
-               $wpdb->insert( $db_table, $data );
-
-               if ( $props_table ) {
-                       // Look for the props in the commit.
-                       $props = props_from_log( $msg );
-
-                       foreach ( $props as $prop ) {
-
-                               $data = [
-                                       'revision'  => $id,
-                                       'prop_name' => $prop,
-                               ];
-
-                               $user_id = find_user_id( $prop, $svn );
-                               if ( $user_id ) {
-                                       $data['user_id'] = $user_id;
-                               }
-
-                               $wpdb->insert( $props_table, $data );
-                       }
-               }
-
-               $processed++;
-       }
-
-       return $processed;
-}
-
-/**
- * Return the first branch related to the file paths given.
- */
-function get_branch_from_paths( array $files ) {
-       foreach ( $files as $file ) {
-               if ( '/trunk' === substr( $file, 0, 6 ) ) {
-                       return 'trunk';
-               }
-
-               if ( '/branches/' === substr( $file, 0, 10 ) ) {
-                       $pos = max( 0, strpos( $file, '/', 12 ) - 1 ) ?: strlen( $file );
-                       return substr( $file, 1, $pos );
-               }
-
-               if ( '/tags/' === substr( $file, 0, 6 ) ) {
-                       $pos = max( 0, strpos( $file, '/', 7 ) - 1 ) ?: strlen( $file );
-                       return substr( $file, 1, $pos );
-               }
-       }
-
-       return false;
-}
-
-function get_wp_version( $svn_url, $branch, $revision = 'HEAD' ) {
-       $files = [
-               'src/wp-includes/version.php',
-               'wp-includes/version.php',
-               'wp-includes/vars.php',
-               'b2-include/b2vars.php',
-       ];
-
-       foreach ( $files as $f ) {
-               $url = "{$svn_url}/{$branch}/{$f}";
-               $output = shell_exec( sprintf(
-                       'svn cat %s@%d 2>/dev/null',
-                       esc_url( $url ),
-                       (int) $revision
-               ) );
-
-               // Use regex, because it's simpler than 32 lines of PHP Tokeniser.
-               if ( $output && preg_match( '!\$(wp|b2)_version\s*=\s*([\'"])(?P<version>.*?)\\2!i', $output, $m ) ) {
-                       return $m['version'];
-               }
-
-       }
-
-       return false;
-}
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginstracwatchphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-watch.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-watch.php   2021-12-13 05:22:29 UTC (rev 11360)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-watch.php     2021-12-13 05:24:09 UTC (rev 11361)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,98 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-namespace WordPressdotorg\Trac\Watcher;
-/**
- * Plugin Name: WordPress.org Trac & SVN Watcher.
- */
-
-define( 'PLUGIN', __FILE__ );
-
-include_once __DIR__ . '/trac.php';
-include_once __DIR__ . '/svn.php';
-include_once __DIR__ . '/props.php';
-
-// Must be earlier than admin_init for admin_menu
-add_action( 'init', function() {
-       if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) {
-               include_once __DIR__ . '/admin/ui.php';
-       }
-} );
-
-add_filter( 'cron_schedules', function( $schedules ) { 
-       $schedules['10_minutes'] = [
-               'interval' => 600,
-               'display'  => 'Every Ten Minutes'
-       ];
-       return $schedules;
-} );
-
-add_action( 'admin_init', function() {
-       // Queue the jobs on blog_id 1 only (wordpress.org/)
-       if ( 1 !== get_current_blog_id() ) {
-               return;
-       }
-
-       if ( ! wp_next_scheduled( 'import_revisions_from_svn' ) ) {
-               wp_schedule_event( time(), '10_minutes', 'import_revisions_from_svn' );
-       }
-
-       if ( ! wp_next_scheduled( 'import_trac_feeds' ) ) {
-               wp_schedule_event( time(), '10_minutes', 'import_trac_feeds' );
-       }
-} );
-
-/**
- * Database tables for if this is used outside of wordpress.org
- */
-register_activation_hook( __FILE__, __NAMESPACE__ . '\create_tables' );
-function create_tables() {
-       $trac_table = "CREATE TABLE IF NOT EXISTS `%s` (
-               `id` int(11) NOT NULL AUTO_INCREMENT,
-               `description` longtext NOT NULL,
-               `summary` longtext NOT NULL,
-               `category` varchar(50) NOT NULL,
-               `username` varchar(50) NOT NULL,
-               `link` varchar(255) NOT NULL,
-               `pubdate` datetime NOT NULL,
-               `md5_id` varchar(50) DEFAULT NULL,
-               `title` varchar(255) NOT NULL,
-               PRIMARY KEY (`id`),
-               UNIQUE KEY `md5_id` (`md5_id`),
-               KEY `category` (`category`),
-               KEY `username` (`username`)
-       ) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
-
-       $revisions_table = "CREATE TABLE IF NOT EXISTS `%s` (
-               `id` int(11) unsigned NOT NULL,
-               `author` varchar(255) NOT NULL DEFAULT '',
-               `date` datetime NOT NULL,
-               `summary` tinytext NOT NULL,
-               `message` text DEFAULT NULL,
-               `branch` varchar(255) NOT NULL DEFAULT '',
-               `version` varchar(32) NOT NULL DEFAULT '',
-               PRIMARY KEY (`id`),
-               KEY `author` (`author`),
-               KEY `branch` (`branch`),
-               KEY `version` (`version`(3))
-       ) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
-
-       $props_table = "CREATE TABLE IF NOT EXISTS `%s` (
-               `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-               `revision` int(11) NOT NULL,
-               `user_id` bigint(20) DEFAULT NULL,
-               `prop_name` varchar(128) NOT NULL DEFAULT '',
-               PRIMARY KEY (`id`),
-               KEY `user_id` (`user_id`),
-               KEY `revision` (`revision`)
-       ) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
-
-       return; // TODO
-       foreach ( SVN\get_svns() as $prefix => $info ) {
-               $wpdb->query( sprintf( $trac_table, 'trac_' . $prefix ) );
-               if ( ! empty( $info['rev_table'] ) ) {
-                       $wpdb->query( sprintf( $revisions_table, $info['rev_table'] ) );
-               }
-               if ( ! empty( $info['props_table'] ) ) {
-                       $wpdb->query( sprintf( $props_table, $info['props_table'] ) );
-               }
-       }
-}
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginstracphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/trac.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/trac.php 2021-12-13 05:22:29 UTC (rev 11360)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/trac.php   2021-12-13 05:24:09 UTC (rev 11361)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,23 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-namespace WordPressdotorg\Trac\Watcher\Trac;
-
-add_action( 'import_trac_feeds', function() {
-       // Trac RSS feed import from profiles.w.org to be moved here.
-} );
-
-function format_trac_markup( $message ) {
-       $message = esc_html( $message );
-       $message = preg_replace( '!`(.*?)`!i', '<code>$1</code>', $message );
-       $message = preg_replace( '!{{{(.*?)}}}!sm', '<code>$1</code>', $message );
-
-       $message = preg_replace( '!\[([^] ]+) ([^]]+)\]!i', '<a href="$1">$2</a>', $message );
-
-       // Escape shortcodes, but that takes out changesets..
-       // $message = str_replace( [ '[', ']'], [ '[[', ']]' ], $message );
-
-       // Might need to disable this, or escape more things prior to it.
-       $message = apply_filters( 'the_content', $message );
-       $message = make_clickable( $message );
-
-       return $message;
-}
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>