Dev:Py/Sharing/SVN Help

提供: wiki
< Dev:Py‎ | Sharing
2018年6月29日 (金) 03:46時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

bf-extensions SVN help panels


bf-extensions svn checkout

Linux

To checkout svn in linux, you have 2 ways.

If you intend to develop scripts or plugins, you checkout a working copy of svn:

  • move in the directory where you want to download svn
  • type
 svn checkout https://svn.blender.org/svnroot/bf-extensions
This will download the svn tree, including hidden directories ".svn" (which is used by svn to detect what you do in your working copy)

If you just mean to downlaod the scripts and plugins for using them, do:

svn export https://svn.blender.org/svnroot/bf-extensions
This will download only the tree itself without svn hidden files.
Windows

When using TortoiseSVN you can get the files by:

  • right clicking on the folder where you want the files to be downloaded to
  • then either choose SVN Checkout (if you want to dive into developing) or Export (if you only want to download the scripts and plugins for using them)
  • In the following window use this URL


bf-extensions svn checkin

Linux
  • check in:
 svn ci https://svn.blender.org/svnroot/bf-extensions
  • download the latest source:
 svn update
  • add a new file or folder to the source:
 svn add <file>/<folder>
  • commit the changes, opens an editor so you can enter the commit message:
 svn commit
  • print the whole log with:
 svn log
  • print a single commit with:
 svn log -r <revision>
Example:
 
svn log -r 160
  • print a part of the log with:
 svn log -r <rev2>:<rev1>
Example:
 svn log -r 160:149
  • Remember to put a message in each committ, so that a proper svn log can let other know what you've done.
  • "svn add <folder>" will add the folder , all files in that folder and all subfolders and their files
  • "svn commit" without the -m parameter and message , will open vim or other default text editor for typing the message. Preferable method if you need to type alot of lines.
  • in order to do a commit you will have to be granted access first. You will be asked by svn for the user name and password for you computer and then user name and password for accessing the svn. Once loged in you dont need to authorise again in the same session.
Windows

Checking something in with TortoiseSVN is just as easy as downloading:

  • right click the file/folder you want to check in and choose SVN Commit
  • just don't forget to put a proper log message in your commits so everybody else knows what you were doing. Note that you can set the minimum log message length to avoid accidentally committing with an empty log message.