锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲黄页网在线观看,亚洲熟妇无码一区二区三区,亚洲午夜国产片在线观看http://m.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://m.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://m.tkk7.com/jinn/articles/90405.html</guid><wfw:comment>http://m.tkk7.com/jinn/comments/90405.html</wfw:comment><comments>http://m.tkk7.com/jinn/articles/90405.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/jinn/comments/commentRss/90405.html</wfw:commentRss><trackback:ping>http://m.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://m.tkk7.com/jinn/aggbug/90405.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/jinn/" target="_blank">jinn</a> 2006-12-28 00:46 <a href="http://m.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://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://44g8.com" target="_blank">亚洲欧美在线x视频</a>| <a href="http://haichuanwangluo.com" target="_blank">亚洲一区二区三区91</a>| <a href="http://kdltuliao.com" target="_blank">美女被吸屁股免费网站</a>| <a href="http://17soco.com" target="_blank">四虎成人精品一区二区免费网站 </a>| <a href="http://147v.com" target="_blank">精品熟女少妇AV免费观看</a>| <a href="http://qmoread.com" target="_blank">亚洲福利一区二区精品秒拍</a>| <a href="http://horticartf.com" target="_blank">一级毛片成人免费看免费不卡</a>| <a href="http://bjsymsdwl.com" target="_blank">国产av天堂亚洲国产av天堂</a>| <a href="http://jisuanq.com" target="_blank">午夜免费福利片观看</a>| <a href="http://0354888.com" target="_blank">亚洲欧洲国产综合</a>| <a href="http://qiseka.com" target="_blank">69堂人成无码免费视频果冻传媒 </a>| <a href="http://viviker.com" target="_blank">国产精品99久久免费观看</a>| <a href="http://lzhuiding.com" target="_blank">久久亚洲成a人片</a>| <a href="http://2002tw.com" target="_blank">在线看片v免费观看视频777</a>| <a href="http://dajiaody.com" target="_blank">国产精品亚洲综合五月天</a>| <a href="http://bjhuicui.com" target="_blank">免费看美女被靠到爽的视频</a>| <a href="http://shaolingtongluo.com" target="_blank">久久无码av亚洲精品色午夜 </a>| <a href="http://hnqkzj.com" target="_blank">最近中文字幕mv免费高清视频8</a>| <a href="http://81am.com" target="_blank">亚洲婷婷在线视频</a>| <a href="http://yygcui.com" target="_blank">免费看美女让人桶尿口</a>| <a href="http://01shanzhai.com" target="_blank">免费激情网站国产高清第一页</a>| <a href="http://gdporun.com" target="_blank">亚洲午夜福利精品久久</a>| <a href="http://www-gogo.com" target="_blank">久久青青草原国产精品免费</a>| <a href="http://445645.com" target="_blank">亚洲成电影在线观看青青</a>| <a href="http://142121.com" target="_blank">全免费a级毛片免费看不卡</a>| <a href="http://djqq520.com" target="_blank">在线播放免费人成视频网站</a>| <a href="http://jj5c.com" target="_blank">亚洲AV永久青草无码精品</a>| <a href="http://se969.com" target="_blank">18国产精品白浆在线观看免费</a>| <a href="http://144446.com" target="_blank">亚洲日本成本人观看</a>| <a href="http://hjndgb.com" target="_blank">亚洲午夜无码久久久久</a>| <a href="http://misiranim.com" target="_blank">鲁大师在线影院免费观看 </a>| <a href="http://wwwzs88.com" target="_blank">精品无码一级毛片免费视频观看 </a>| <a href="http://www-774220.com" target="_blank">亚洲一区二区观看播放</a>| <a href="http://guilinsix.com" target="_blank">五月婷婷亚洲综合</a>| <a href="http://ksyy888.com" target="_blank">59pao成国产成视频永久免费</a>| <a href="http://by1687.com" target="_blank">亚洲欧美日韩久久精品</a>| <a href="http://syeyo.com" target="_blank">中文字幕中韩乱码亚洲大片</a>| <a href="http://yaojing123.com" target="_blank">69视频在线观看高清免费</a>| <a href="http://lawelites.com" target="_blank">亚洲αⅴ无码乱码在线观看性色</a>| <a href="http://1111xxxx.com" target="_blank">亚洲性猛交XXXX</a>| <a href="http://qsqse1.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>