Changeset 3082
- Timestamp:
- 05/05/2016 07:45:24 AM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
r3078 r3082 96 96 rename( $plugin_root, "$dir/trunk" ); 97 97 98 SVN::import( $dir, 'http://plugins.svn.wordpress.org/' . $post->post_name, array( 99 'm' => sprintf( 'Adding %1$s by %2$s.', $post->post_title, $plugin_author->user_login ), 100 'username' => AUTOMATTIC_SVN_TRACKER__SVN_USER, 101 'password' => AUTOMATTIC_SVN_TRACKER__SVN_PASSWORD, 102 ) ); 98 SVN::import( $dir, 'http://plugins.svn.wordpress.org/' . $post->post_name, sprintf( 'Adding %1$s by %2$s.', $post->post_title, $plugin_author->user_login ) ); 103 99 104 100 // Delete zips. -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tools/class-svn.php
r3026 r3082 10 10 11 11 /** 12 * Create an SVN Export of a local directory to a URL. 13 * 14 * Note: An exception will be thrown upon SVN error. 12 * Import a local directory to a SVN path. 15 13 * 16 14 * @param string $path The local folder to import into SVN. 17 15 * @param string $url The URL to import to. 18 * @param array $options A list of options to pass to SVN. Optional.16 * @param string $message The commit message. 19 17 * 20 18 * @return array { … … 23 21 * } 24 22 */ 25 public static function import( $path, $url, $options = array() ) { 23 public static function import( $path, $url, $message ) { 24 $options = array( 25 'non-interactive', 26 'm' => $message, 27 'user' => PLUGIN_SVN_MANAGEMENT_USER, 28 'pass' => PLUGIN_SVN_MANAGEMENT_PASS, 29 ); 26 30 $esc_options = self::parse_esc_parameters( $options ); 27 31 … … 44 48 * Create an SVN Export of a URL to a local directory. 45 49 * 46 * Note: An exception will be thrown upon SVN error.47 *48 50 * @param string $url The URL to export. 49 51 * @param string $destination The local folder to export into. … … 56 58 */ 57 59 public static function export( $url, $destination, $options = array() ) { 60 $options[] = 'non-interactive'; 58 61 $esc_options = self::parse_esc_parameters( $options ); 59 62 … … 82 85 */ 83 86 public static function ls( $url, $verbose = false ) { 84 $esc_options = ''; 87 $options = array( 88 'non-interactive' 89 ); 85 90 if ( $verbose ) { 86 $ esc_options = '-v';91 $options[] = 'v'; 87 92 } 93 $esc_options = self::parse_esc_parameters( $options ); 88 94 $esc_url = escapeshellarg( $url ); 89 95 … … 133 139 } 134 140 135 $result[] = escapeshellarg( $key ) . ( $no_parameters ? '' : ' =' . escapeshellarg( $value ) );141 $result[] = escapeshellarg( $key ) . ( $no_parameters ? '' : ' ' . escapeshellarg( $value ) ); 136 142 } 137 143
Note: See TracChangeset
for help on using the changeset viewer.