- 浏览: 2883682 次
- 性别:
- 来自: 武汉
文章分类
- 全部博客 (1173)
- 名言警句 (5)
- 心情随笔 (50)
- 数据库 (57)
- Java基础 (241)
- J2EE框架 (91)
- 数据结构 (12)
- 程序设计 (21)
- WEB技术 (128)
- 网络日志 (12)
- IT资讯 (247)
- linux (64)
- solaris (2)
- 其它 (143)
- WebService (4)
- 日语学习 (2)
- 机器人 (5)
- Android (5)
- cgywin (3)
- Game (1)
- DWR (1)
- spring (8)
- canvas (1)
- Guava (3)
- Modbus (5)
- 测试 (6)
- mongodb (9)
- Quartz (2)
- Cron (1)
- windows (2)
- 持续集成 (1)
- bootstrap (3)
- 结对编程 (1)
- nodejs (1)
- Netty (1)
- 安全 (3)
- webstorm (2)
- sparkline (1)
- Job (1)
- git (3)
- Maven (3)
- knockout (5)
- jquery (1)
- bower (1)
- docker (1)
- confluence (4)
- wiki (1)
- GoogleMap (1)
- jekyll (10)
- ruby (2)
- npm (3)
- browserify (1)
- gulp (3)
- openwrt (1)
- discuz (3)
- 输入法 (1)
- JPA (1)
- eclipse (2)
- IntelliJ (1)
- css (1)
- 虚拟机 (1)
- 操作系统 (1)
- azkaban (2)
- scrum (1)
最新评论
-
pangxiea_:
你好, 想请问一下 Linux下 这么使用rxtxcomm 在 ...
使用Java进行串口通信 -
abababudei:
请教一下,这个您是怎么解决的:/dev/ttyS2enteri ...
Java应用程序的MODBUS通讯 -
xuniverse:
hannibal005 写道楼主,我问下 request.se ...
用javascript与java进行RSA加密与解密 -
atxkm:
找了一下午,终于找到了
gulp 拷贝文件时如何移除文件目录结构 -
kalogen:
gtczr 写道非常感谢,经过我自己的修改,已经完美实现。发出 ...
用javascript与java进行RSA加密与解密
If you edit with TextPad a lot, you probably want to keep back ups of the in between versions. Instead of making a zip at the end of the day, I recommend to use a version control system, like Subversion. Moreover, it's very easy to call it from Textpad itself, and hence you can make it part of the editing process itself. Since TextPad runs in a Windows environment, I decided to use TortoiseSVN, a client for subversion implemented as a Windows shell extension, and hence comes with a graphical user interface (GUI). This article explains how to integrate TortoiseSVN into TextPad. I have also planned an article on getting started with Subversion, so either check back now and then, or subscribe to the RSS feed for this site. In order to call an external program from within TextPad a "tool" has to be created. Tools are added to the, surprise, Tools menu, and to make life easier you can also associate a key combination to call the tool. Definition for tools are made via the Preferences dialog window. Either press Ctrl+Q followed by P to open this window, or select the Preferences... entry in the Configure menu of TextPad. When the Tools entry is selected in the left part of the dialog window, the center part shows a list of Tools already defined, with an Add button to the right. You are now ready to define your first tool. Although it may sound counterintuitive to start with commit, it's probably the tool you're going to use the most. Also, TortoiseProc.exe, the program we are going to use in each tool, is able to do the add and commit to the repository in one go. Press the Add button, and in the drop down menu select "Program". Browse to the bin folder inside the installation folder of TortoiseSVN, which is on my system: Select the TortoiseProc program, and press the Open button. You should now see a new entry added to the list in the center of the Preferences dialog: TortoiseProc. Now put the mouse pointer on the already selected entry, and click the left mouse button once and wait. If you do it right, you now can edit the name. Change it into Commit. Notice that the new tool you just created doesn't show up under the Tools entry on the left side of the Preferences Dialog yet. Press the Apply button, and it should appear. Select the Commit entry under the Tools entry (left side of Preferences Dialog) and change the Parameters field into the following: Note the quotes around $File, those are needed. Also, because the $File variable is used in the Parameter field, TextPad saves the file before the tool is actually executed. Finally, the /notempfile is mandatory, as explained in "Appendix C: Automating TortoiseSVN" of the help file that comes with TortoiseSVN. By following For example, with this tool you might decide to use After you changed the Parameters field, and optionally changed the Important: when you commit a file, make a habit of entering a meaningful into the log message input field. This might sound like a lot of work, and with small edits even superfluous, but trust me on this, better safe now then sorry later. And make sure it's meaningful, not only at the moment itself, but also after months and months. Just "fixed some bugs" is as bad as nothing at all. If you now open the Tools menu, the tool you just created should be visible, followed by a key combination, which is default Ctrl+1. At the end of this article I explain how to change the key combination, and other customizations you might want to do. Once a file is in the repository, you can view the log of it. I recommend to create the Show Log tool for two reasons: first it makes it possible to view each message that has been entered in the commit step. Secondly, you can compare any revision with the current file in the editor. Repeat the steps as given in the previous section, but use "Show Log" as the name of the tool, and use the following for "Parameters" field: You can compare the current file (working copy) against a previous revision by selecting the revision entry in the Log Messages window, pressing the right mouse button, and selecting the "Compare with working copy" entry in the context menu. Now and then I want to see which changes I made to the file I am editing, compared to the last version committed (head revision). The Show Low tool, as described in the previous section, provides for a diff with any revision, including the head one. However, to make life easier you might want to add the Diff tool with the following value of the "Parameters" field: Even though TextPad has excellent undo facilities, sometimes I want to fall back to the last revision I committed (head), which is called a revert to the head version. Again, repeat the steps as given before, use "Revert" as the name of the tool, and use the following for the "Parameters" field: Note that with the Show Log tool you can fall back to any revision. Default, the first tool you define can be activated by pressing Ctr+1, the second one by pressing Ctrl+2, etc. In case you want to change this, open the Preferences dialog of TextPad, and select the Keyboard option. Next, select the Tools category, and select the tool of which you want to customize the shortcut key. Then, click in the "Press new shortcut" field and press the shortcut key you want to use. Remember that TextPad uses Ctrl+Q as an extra meta key, so I decided to assign Ctrl+Q, C to commit. Note that if a shortcut is already in use, TextPad reports this under the "Press new shortcut" field. Important: make sure you press the Assign button in order to confirm the change. If you just press OK, nothing will be changed. Also, you might want to remove the default shortcut. Note that you can organize the tools you created in the Tools menu. You can either move them up or down in order to group them. Also, you can insert menu separators for easy recognition of groups. Select the Tools entry in the Preferences dialog window. Above the list of available tools you see three icons which are linked to the following actions: delete, move up, move down. A menu separator can be added by pressing the Add button and selecting the Menu Separator option. A separator, displayed as ----------- can also be moved up and down, and deleted.How to call an external program from TextPad
Committing a file to the repository: Commit
C:\Program Files\TortoiseSVN\bin
/command:commit /path:"$File" /notempfile /closeonend
/closeonend
by a : and a number you can override the Autoclose setting (Tortoise SVN Settings, Look and Feel, Dialogs) of TortoiseSVN as follows:
/closeonend:0
don't close the dialog automatically/closeonend:1
auto close if no errors/closeonend:2
auto close if no conflicts/closeonend:3
auto close if no merges/closeonend:1
instead of the default selected by /closeonend
./closeonend
, press the OK button.Information on a file: Show Log
/command:log /path:"$File" /notempfile
Which changes have been made: Diff
/command:diff /path:"$File" /notempfile
Falling back to the head revision: Revert
/command:revert /path:"$File" /notempfile
Changing the shortcut key for a tool
Organizing the Tools menu
发表评论
-
高级Java程序员值得拥有的10本书
2015-05-04 07:24 818Java是时下最流行的编程语言之一。市面上也出现了适合初学者 ... -
深入理解java异常处理机制
2015-01-30 09:30 13371. 引子 try…catch…fi ... -
java 运行时参数设置
2015-01-07 09:13 875JVM的运行时参数: -Xms为执行单元内存的1/4, ... -
每个Java开发者都应该知道的5个JDK工具
2014-12-29 12:37 1148JDK是Java语言的软件开 ... -
使用双重锁判定可以大幅降低锁的征用
2014-12-29 12:30 755class ObjInstance { //单例 pri ... -
MAVEN Scope使用说明
2014-11-24 09:40 770在Maven的依赖管理中,经常会用到依赖的scope设置。这 ... -
Spring4 quartz job xml configuration
2014-11-11 09:46 14451. 定义job details public ... -
Add items into list in one line using guava
2014-11-10 10:54 729//@formatter:off fina ... -
配置动态读取(变化)文件 in Spring
2014-11-10 08:51 13331. 从环境变量中读取路径: <bean id=&q ... -
JAVA实现AES加密与解密
2014-11-04 15:34 669package com.eifesun.monitor.up ... -
Netty4.x分析
2014-07-31 11:06 1478官网定义: netty是一个异步、事件驱动的网络应用框架,用 ... -
Ways to sort lists of objects in Java based on multiple fields
2014-07-21 17:19 7821. the first way: Sorting wit ... -
how to parse a String to BigDecimal
2014-07-21 10:08 929private BigDecimal parsePrice( ... -
order list using google guava
2014-07-21 09:08 893Predicate<String> filter ... -
Java 读文件操作
2014-07-08 14:09 8951. only use java core, no exte ... -
怎样使Java 中测试按一定顺序执行
2014-03-10 11:27 1335@FixMethodOrder(MethodSorters. ... -
如何实现在当类初始化时,自动调动某个方法
2014-02-14 14:44 972有两种思路, 1. 将这个类实现为thread类 (or ... -
持续集成JenkinsAPI常见用法
2014-02-10 13:54 43jenkins(持续集成开源工具)提供了丰富的api接口,基 ... -
Sonar 安装与使用
2014-01-13 10:49 1744Sonar 是一个用于代码质量管理的开放平台。通过插件机制, ... -
源代码管理分析工具 Source Navigator的安装与使用
2014-01-13 09:51 1908Source-Navigator是原来redhat开发的一个 ...
相关推荐
This book tells you how to improve the effectiveness of your software development process using version control. Version control, sometimes called source code control, is the first leg of our...
svn, version 1.9.0 (r1692801) compiled Jul 29 2015,...* ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.3.8 - handles 'http' scheme - handles 'https' scheme
Subversion Subversion Subversion Subversion Subversion
### Pragmatic Version Control Using Subversion #### 一、引言 版本控制系统是现代软件开发不可或缺的一部分,它帮助团队管理代码的变化历史,并确保项目能够稳定地进行迭代与更新。本书《Pragmatic Version ...
Jenkins Subversion 插件使得Jenkins能够与Subversion仓库进行交互,进行代码的检出、更新和提交等操作。在设置Jenkins与Subversion的集成时,正确安装和配置相关插件至关重要。 首先,我们需要了解Jenkins ...
Subversion 是一个开源的版本控制系统,它用于管理文件和目录的变更历史,使得多人协作开发成为可能。在给定的压缩包文件中,包含了 `subversion-1.7.2.tar.gz` 和 `subversion-deps-1.6.1.tar.gz` 两个文件,它们是...
### Subversion Edge 详细安装与使用手册 #### 一、Subversion Edge 下载与安装 ##### 1.1 下载地址 Subversion Edge 的下载地址为:[http://www.collab.net/svnedge](http://www.collab.net/svnedge)。 ##### ...
Subversion 是一个开源的版本控制系统,它用于管理文件和目录的变更历史,使得多人协作开发成为可能。在软件开发过程中,Subversion 提供了版本控制功能,允许开发者追踪和恢复代码的不同版本,避免了文件冲突,并有...
Apache Subversion(简称SVN)是一个开源的版本控制系统,用于管理软件项目的源代码和其他文件的变更。这个"Apache-Subversion-1.14.0.zip"压缩包包含的是Subversion 1.14.0版本的命令行工具,适用于Windows操作系统...
**SubVersion 应用详解** SubVersion(简称SVN)是一种广泛使用的版本控制系统,它能够跟踪文件和目录的变更,使多个用户协同工作在同一个项目上成为可能。本讲解将深入探讨SubVersion的基础概念、安装配置、基本...
Subversion(简称SVN)是一款开源的版本控制系统,它用于管理对文件和目录的更改,以便在多人协作的环境中保持数据的一致性和完整性。Subversion 1.5.1是Subversion项目的一个重要版本更新,它带来了许多改进和新...
Subversion,快速入门教程,本文是使用Subversion最快速的教程,在最短的时间里帮助您建立起一套可用的服务器环境,只需略加调整就可以应用到实际项目当中。
Subversion 1.2x 插件是针对Eclipse集成开发环境的一个版本控制系统插件,主要用于支持Subversion(SVN)版本控制系统的操作。Subversion是一个开源的版本控制系统,允许用户跟踪文件和目录的更改历史,便于团队协作...
Subversion(SVN)是一个广泛使用的版本控制系统,用于管理和跟踪文件和目录的变更。这个"subversion-1.14.2.tar.gz"文件是一个压缩包,包含了Subversion 1.14.2版本的源代码。这个版本的发布可能包含了一些新特性、...
Subversion是一个自由开源的版本控制系统。在Subversion管理下,文件和目录可以超越时空。Subversion将文件存放在中心版本库里,这个版本库很像一个普通的文件服务器,不同的是,它可以记录每一次文件和目录的修改...