Updating
You’ve just released your plugin but need to update it
- Update local repository
- Edit
- Check in your changes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | $ cd my-local-plugin-directory/ my-local-plugin-directory/$ svn up > At revision 11326. # Good: all up to date. If there had been changes in the # central repository, they would have been downloaded and # merged into your local copy. # Edit the file that needs changing. # You can check and see what's different between your # local copy and the central repository. # First we check the status of the local copy. my-local-plugin-directory/$ svn stat > M trunk/some-plugin.php # This tells us that our local trunk/some-plugin.php # is different from the copy we downloaded from the # central repository ( "M" for "modified" ). # Let's see what exactly has changed in that file, # so we can check it over and make sure things look right. my-local-plugin-directory/$ svn diff > * What comes out is essentially the result of a * standard `diff -u` between your local copy and the * original copy you downloaded. # Looks good. Let's check in those changes to the # central repository. my-local-plugin-directory/$ svn ci -m "New Feature: it works and is actually usable now!" > Sending trunk/some-plugin.php > Transmitting file data . > Committed revision 11327. # All done! |
