锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲黄页网在线观看,亚洲熟妇无码一区二区三区,亚洲午夜国产片在线观看http://www.tkk7.com/jinn/category/18753.html Jinn's Programming Roadzh-cnWed, 28 Feb 2007 23:06:04 GMTWed, 28 Feb 2007 23:06:04 GMT60Subversion Cheat Sheet銆愯漿銆?/title><link>http://www.tkk7.com/jinn/articles/90405.html</link><dc:creator>jinn</dc:creator><author>jinn</author><pubDate>Wed, 27 Dec 2006 16:46:00 GMT</pubDate><guid>http://www.tkk7.com/jinn/articles/90405.html</guid><wfw:comment>http://www.tkk7.com/jinn/comments/90405.html</wfw:comment><comments>http://www.tkk7.com/jinn/articles/90405.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jinn/comments/commentRss/90405.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jinn/services/trackbacks/90405.html</trackback:ping><description><![CDATA[ <h2>聽Subversion Cheat Sheet</h2> <div xmlns:xh="http://www.w3.org/1999/xhtml"> <p>This Subversion cheat sheet was created during the initial setup of Subversion on Apache 2.0 on Windows and Mac OS X. A detailed tutorial covering most of the features of Subversion can be found in the <a >online Subversion book</a>. However, to make Subversion more useful for me, I created this Readers' Digest version. </p> <h3>Create a Repository</h3> <p>To store projects in Subversion, first you must create a repository. This must be done to a local drive on a local machine. Creating a repository on a network drive is not supported. To create a repository type:</p> <h5>UNIX</h5> <p> <b> <code>svnadmin create /path/to/repository</code> </b> </p> <h5>Windows</h5> <p> <b> <code>svnadmin create d:/path_to_repository</code> </b> </p> <p>By default this sets up a Berkeley database to store the repository. Individual projects should be created as subdirectories of the repository directory (see the next section). Notice that the Windows version includes a drive letter, but also uses forward slashes instead of back slashes. The forward slashes are required even on Windows.</p> <h4>Add a New Project - <code>svn import</code></h4> <p>To add a project, the Subversion documentation suggests that you create a directory structure like the following: </p> <img alt="Picture of the Directory Structure" src="http://www.abbeyworkshop.com/howto/misc/svn01/svndirs.png" /> <p>A root project directory contains three subdirectories, branches, tags, and trunk. Your files and directories are stored under the trunk directory. </p> <p>Create the directories as described. Assuming the project directory is a subdirectory of the current directory, you would enter the following command </p> <h5>UNIX</h5> <p> <b> <code>svn import project file:///repository_name/project -m "First Import" </code> </b> </p> <h5>Windows</h5> <p> <b> <code>svn import project file:///d:/repository_name/project -m "First Import" </code> </b> </p> <h5>Network</h5> <p> <b> <code>svn import project http://host_name/svn_dir/repository_name/project -m "First Import" </code> </b> </p> <p>Notice the Network example includes an svn_dir. This assumes you are using Apache 2.0 and the Subversion modules. When setting up Subversion on Apache, a virtual directory is created on the server that points to your repository directory. More information on Apache 2 setup is described later in this document.</p> <p>This creates the initial project which you can work from. To get the files under version control, you must checkout a project to begin working on it. </p> <h3>Checking Out a Project - <code>svn checkout</code></h3> <p>To start using the version control features check out a project into your local working directory. This is done with the following command: </p> <h5>UNIX</h5> <p> <b> <code>svn checkout file:///repository_name/project/trunk project </code> </b> </p> <h5>Windows</h5> <p> <b> <code>svn checkout file:///d:/repository_name/project/trunk project </code> </b> </p> <h5>Network</h5> <p> <b> <code>svn checkout http://host_name/svn_dir/repository_name/project/trunk project </code> </b> </p> <p>In these examples, project is the name of the directory where you want to store the checked out project on your local file system. </p> <h3>Getting a List of Projects - <code>svn list</code></h3> <p>To get a list of the current projects stored in a repository, you can use the following command. </p> <h5>UNIX</h5> <p> <b> <code>svn list --verbose file:///repository_name/project </code> </b> </p> <h5>Network</h5> <p> <b> <code>svn list --verbose http://host_name/svn_dir/repository_name/project </code> </b> </p> <p>This will show you a list of each project directory in that repository.</p> <h3>Reviewing Changes - <code>svn status</code></h3> <p>To see what files you have changed or added to your checked out work, use the update command: </p> <h5>UNIX</h5> <p> <b> <code>svn status </code> </b> </p> <p>This command will give you a listing of new files, files that have been changed, and files that have been deleted. New files or deleted files must be added or removed using the add and delete commands (see more below.) </p> <h3>Adding New Files and Directories - <code>svn add</code></h3> <p>When you add a new file or directory to a project that has been checked out, you must tell Subversion to include that file or directory in its version control.</p> <h5>UNIX</h5> <p> <b> <code>svn add file_or_dir_name </code> </b> </p> <p>Adding a directory will add the directory and all the files and directories in it. However, this does not add the file or directory to the repository, you must still issue a commit to update the repository. </p> <h3>Deleting Files and Directories - <code>svn delete</code></h3> <p>If you can add, you can also delete. If you wish to remove a file your directory from be versioned, you use the delete command: </p> <h5>UNIX</h5> <p> <b> <code>svn delete file_or_dir_name </code> </b> </p> <p>Like add, you must perform a commit before the file is actually deleted from the repository. </p> <p>However, the delete command does have another option not found in add. With the delete command you can remove files or directories from the repository. For example, the following command would remove a project and all the files under it. </p> <h5>Network</h5> <p> <b> <code>svn delete -m "Deleting project dir" http://localhost/svn_dir/repository/project_dir </code> </b> </p> <p>This version of the command comes in particulary useful if someone has accidently imported files into the wrong place (I wouldn't know about that myself of course.) </p> <h3>Committing Changes - <code>svn commit</code></h3> <p>Once you have added, deleted, or changed files or directories, you can then commit those changes to the repository. This command is pretty straightforward: </p> <h5>Network</h5> <p> <b> <code>svn commit -m "Saving recent changes" http://localhost/svn_dir/repository/project_dir </code> </b> </p> <h3>Updating Your Local Files - <code>svn update</code></h3> <p>If you have a set of files checked out and would like to update them to the most recent version of files in the repository, use the update command. </p> <h5>Network</h5> <p> <b> <code>svn update </code> </b> </p> <p>If there are newer files in the repository, they will overwrite any files you have locally. Before using this command, you may want to use the svn diff command to find out what the differences are between your local files and the repository. </p> <h3>Tagging Projects or Creating Project Specific Versions</h3> <p>Subversion does not track the version numbers for individual projects automatically. Instead, it tracks each update to the repository and tracks the versions of these updates. To create interim project releases, you must create "Tags" which identify a specify version of a project. This is done by making a virtual copy of a project in the tags directory. For example: </p> <p> <b> <code>svn copy http://host_name/repos/project/trunk http://host_name/repos/project/tags/0.1.0 -m "Tagging the 0.1.0 release of the project" </code> </b> </p> <p>This creates a sort of bookmark or snapshot which records the current state of the project. Then, you can checkout the project in this state at any time by simply referring to that release number. </p> <p>To get a list of the releases for a project.</p> <p> <code> <b>svn list http://192.168.0.4/svn/repos/prj1/tags</b> <br />0.1.0/ </code> </p> <p>Then to check out a release you would type:</p> <p> <code> <b>svn list http://192.168.0.4/svn/repos/prj1/tags/0.1.0</b> <br /> <pre>A 0.1.0\dir1 A 0.1.0\dir1\file3 A 0.1.0\dir1\file4 A 0.1.0\file1 A 0.1.0\file2 A 0.1.0\textfile.txt A 0.1.0\file3 Checked out revision 13. </pre> </code> </p> <p> </p> <p>Since the project has been saved in the tags directory. Release 0.1.0 can be retrieved at any time in the future. </p> <h3>Basic Apache Setup</h3> <p>You must use Apache 2.0 to install Subversion. Just compile and copy or copy the Subversion Apache module into the Apache modules directory. The following two files must be uncommented or added to the httpd.conf file: </p> <pre> LoadModule dav_module modules/mod_dav.so LoadModule dav_svn_module modules/mod_dav_svn.so </pre> <p>Next, you must setup a location directive in the httpd.conf file to associate a directory with Subversion repositories. This example uses the SVNParentPath setting to point to a parent directory which contains repository subdirectories. This is convenient as it allows you to add as many repositories as you need without having to restart Apache or modify the httpd.conf file. </p> <pre> <Location /svn> DAV svn # All repos subdirs of d:/svn SVNParentPath D:/svn </Location> </pre> <p> <b>Note:</b>When using Fink to install Subversion on Mac OS X, the Subversion Apache module is stored in the Fink package listing with the prefix: libapache2. The package full name is libapache2-mod-svn. If you are using Fink, it will automatically install the modules into the correct directory. </p> <h3>General Notes</h3> <p>Below are a list of notes from initial setup and testing. </p> <ul> <li>Subversion versions the repository, not individual projects. For example, I have two projects, project 1 and project 2, and check out each project when the current repository version is 3. I make changes to each project and commit those changes back to the repository. For each change, the revision number is incremented in the repository and its current version is now 5. The current revision of each project will also be 5 as they have no separate revision number. </li> <li>To setup the Subversion module on Apache for Windows, I had to give the Apache Service access to the local file system. This is done on Windows by setting up a login account for the service. Setup an account in the Users application in Control Panel, make sure to set the password. Once this is done, go to the Services tool in Control Panel. Change the login for the Service to the account you created. XP will automatically give the Login as a Service privilege to the account (the OS must do this as the tools are not available XP Home, only in XP Pro). Once you do this and start and stop the Apache Service, you should be able to read and write to the repository directories. Note: Setting up a log in account for a Service can create a security hole. Consider your security requirements before doing this. </li> <li>Individual files and directories that did not exist during the initial import, must be added individually using the svn add command. </li> </ul> </div> <h4>鍘熷潃錛?a >http://www.abbeyworkshop.com/howto/misc/svn01/</a></h4> <img src ="http://www.tkk7.com/jinn/aggbug/90405.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jinn/" target="_blank">jinn</a> 2006-12-28 00:46 <a href="http://www.tkk7.com/jinn/articles/90405.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://fanhaogo.com" target="_blank">日本一区二区三区日本免费</a>| <a href="http://www77714.com" target="_blank">久久这里只精品99re免费</a>| <a href="http://gdporun.com" target="_blank">99在线视频免费观看视频 </a>| <a href="http://www-135888.com" target="_blank">国产偷国产偷亚洲高清在线</a>| <a href="http://znboxcdn107.com" target="_blank">久久久久久国产a免费观看黄色大片 </a>| <a href="http://mallmirror.com" target="_blank">国内大片在线免费看</a>| <a href="http://www398ph.com" target="_blank">亚洲AV无码乱码麻豆精品国产</a>| <a href="http://pencilinside.com" target="_blank">无码精品一区二区三区免费视频</a>| <a href="http://138site.com" target="_blank">久久久久久久尹人综合网亚洲</a>| <a href="http://nb46.com" target="_blank">你是我的城池营垒免费看</a>| <a href="http://0147222.com" target="_blank">亚洲欧洲成人精品香蕉网</a>| <a href="http://7t53.com" target="_blank">中文字幕乱理片免费完整的</a>| <a href="http://57fi.com" target="_blank">亚洲码国产精品高潮在线</a>| <a href="http://kanboy.com" target="_blank">永久免费AV无码网站国产</a>| <a href="http://xxyy66.com" target="_blank">亚洲国产精品自在在线观看</a>| <a href="http://468862.com" target="_blank">91热久久免费精品99</a>| <a href="http://sswg2.com" target="_blank">亚洲一区二区三区播放在线</a>| <a href="http://xingqiu1.com" target="_blank">成年人在线免费看视频</a>| <a href="http://xx2015.com" target="_blank">国产午夜亚洲精品不卡</a>| <a href="http://26uuyy.com" target="_blank">久久久久亚洲AV无码专区桃色</a>| <a href="http://zhaoav7.com" target="_blank">99re6在线精品免费观看</a>| <a href="http://www62hth.com" target="_blank">亚洲国产人成网站在线电影动漫</a>| <a href="http://14743592.com" target="_blank">午夜爽爽爽男女免费观看影院</a>| <a href="http://19933k.com" target="_blank">亚洲激情校园春色</a>| <a href="http://ksyanhui.com" target="_blank">天天天欲色欲色WWW免费</a>| <a href="http://cin17.com" target="_blank">爱情岛论坛亚洲品质自拍视频网站</a>| <a href="http://grjeans.com" target="_blank">亚洲国产成人久久笫一页</a>| <a href="http://gzbaida.com" target="_blank">在线观看免费黄色网址</a>| <a href="http://nxjyyj.com" target="_blank">亚洲男人天堂影院</a>| <a href="http://caoliusq1024.com" target="_blank">免费被黄网站在观看</a>| <a href="http://jdvgo.com" target="_blank">美女无遮挡拍拍拍免费视频 </a>| <a href="http://bjqhkf.com" target="_blank">亚洲1区2区3区精华液</a>| <a href="http://lanoss.com" target="_blank">亚洲日本在线免费观看</a>| <a href="http://ac839.com" target="_blank">无码一区二区三区免费视频</a>| <a href="http://siqingsizu.com" target="_blank">亚洲av最新在线观看网址</a>| <a href="http://8833655.com" target="_blank">久久久久亚洲AV成人网人人网站</a>| <a href="http://hkschooltv.com" target="_blank">亚洲一区免费观看</a>| <a href="http://pgyadv.com" target="_blank">在线观看亚洲网站</a>| <a href="http://sdzsx.com" target="_blank">91亚洲自偷手机在线观看</a>| <a href="http://yese889.com" target="_blank">免费一级做a爰片久久毛片潮喷</a>| <a href="http://dunyny.com" target="_blank">日本道免费精品一区二区</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>