svn-command 0.2.5 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo.rb +2 -2
- data/Readme +34 -9
- data/lib/svn-command/svn_command.rb +1 -0
- metadata +2 -2
data/ProjectInfo.rb
CHANGED
@@ -5,7 +5,7 @@ module Project
|
|
5
5
|
PrettyName = "Enhanced Subversion Command"
|
6
6
|
Name = "svn-command"
|
7
7
|
RubyForgeName = "svn-command"
|
8
|
-
Version = "0.2.
|
8
|
+
Version = "0.2.7"
|
9
9
|
Specification = Gem::Specification.new do |s|
|
10
10
|
s.name = Project::Name
|
11
11
|
s.summary = "A nifty wrapper command for Subversion's command-line svn client"
|
@@ -27,7 +27,7 @@ module Project
|
|
27
27
|
s.add_dependency("rscm")
|
28
28
|
s.post_install_message = <<-End
|
29
29
|
---------------------------------------------------------------------------------------------------
|
30
|
-
Please run _svn_command_post_install to finalize the installation.
|
30
|
+
Please run sudo /usr/bin/_svn_command_post_install to finalize the installation.
|
31
31
|
---------------------------------------------------------------------------------------------------
|
32
32
|
End
|
33
33
|
|
data/Readme
CHANGED
@@ -8,25 +8,35 @@
|
|
8
8
|
[<b>Copyright</b>:] 2007 QualitySmith, Inc.
|
9
9
|
[<b>License</b>:] {GNU General Public License}[http://www.gnu.org/copyleft/gpl.html]
|
10
10
|
|
11
|
-
==
|
11
|
+
== What is it?
|
12
12
|
|
13
|
-
This is a replacement <b><tt>svn</tt> command-line client</b> meant to be used instead of the standard +svn+ command. (Actually, it's a _wrapper_, not a replacement, because it still uses <tt>/usr/bin/svn</tt> to do all the dirty work.)
|
13
|
+
This is a replacement <b><tt>svn</tt> command-line client</b> meant to be used instead of the standard +svn+ command. (Actually, it's a _wrapper_, not a strict replacement, because it still uses <tt>/usr/bin/svn</tt> to do all the dirty work.)
|
14
14
|
|
15
15
|
== Installation
|
16
16
|
|
17
|
+
=== Dependencies
|
18
|
+
|
19
|
+
* termios
|
20
|
+
* colored
|
21
|
+
* escape
|
22
|
+
* facets
|
23
|
+
* extensions
|
24
|
+
* qualitysmith_extensions
|
25
|
+
* rscm
|
26
|
+
|
17
27
|
=== Installation: Once per _system_
|
18
28
|
|
19
|
-
|
29
|
+
* Install the gem (with dependencies):
|
20
30
|
|
21
|
-
|
31
|
+
sudo gem install svn-command --include-dependencies
|
32
|
+
|
33
|
+
You will also need to run <tt>sudo /usr/bin/_svn_command_post_install</tt>, which will attempt to do the following (or you can do this manually):
|
22
34
|
|
23
35
|
* Make the svn wrapper command *executable*:
|
24
36
|
|
25
37
|
sudo chmod a+x /usr/lib/ruby/gems/1.8/gems/svn-command*/bin/*
|
26
38
|
|
27
|
-
(We can't just set <tt>executables = "svn"</tt> and have it automatically install it to /usr/bin because that would cause it to <b>wipe out</b> the existing executable at <tt>/usr/bin/svn</tt>! If you know of a better, more automatic solution to this, please let the developers know!)
|
28
|
-
|
29
|
-
(You may have to restart my terminal after doing the chmod step for bash to detect the svn command in that new location.)
|
39
|
+
(Note: We can't just set <tt>executables = "svn"</tt> in the gemspec and have it automatically install it to /usr/bin because that would cause it to <b>wipe out</b> the existing executable at <tt>/usr/bin/svn</tt>! If you know of a better, more automatic solution to this, please let the developers know!)
|
30
40
|
|
31
41
|
=== Installation: Per user
|
32
42
|
|
@@ -35,6 +45,8 @@ You will also need to run <tt>_svn_command_post_install</tt>, which will attempt
|
|
35
45
|
* Add a <tt>PATH=</tt> command to your <tt>~/.bash_profile</tt> (or equivalent). For example:
|
36
46
|
|
37
47
|
export PATH=`ls -dt --color=never /usr/lib/ruby/gems/1.8/gems/svn-command* | head -n1`/bin:$PATH"
|
48
|
+
|
49
|
+
(You may have to source your <tt>~/.bash_profile</tt> after making <tt>svn</tt> in order for bash to detect the new path to the svn command.)
|
38
50
|
|
39
51
|
=== Check to see if it's working
|
40
52
|
|
@@ -101,13 +113,26 @@ For *files*, it will show a preview of the _contents_ of that file (limited to t
|
|
101
113
|
|
102
114
|
== <tt>svn revisions</tt> (revisions browser)
|
103
115
|
|
104
|
-
Lets you interactively
|
116
|
+
Lets you interactively browse through all revisions of a file/directory/repository (one at a time). For each revision, it will ask you what you want to do with it (view the changeset, edit revision properties, etc.).
|
105
117
|
|
106
118
|
Screenshot:
|
107
119
|
link:include/svn_revisions.png
|
108
120
|
|
109
|
-
|
121
|
+
It's sort of like <tt>svn log | less</tt>, only it's interactive, it's in color, and it's just plain more useful!
|
122
|
+
|
123
|
+
You can step through the revisions using the arrow keys or Enter.
|
124
|
+
|
125
|
+
Here are a couple things you might use it for:
|
126
|
+
* <b>View the history of a certain file</b>.
|
127
|
+
* Rather than looking at <tt>svn log -v</tt> (which can be _huge_) directly and then manually calculating revision numbers and doing things like <tt>svn diff -r1492:1493</tt> over and over, you can simply start up <tt>svn revisions</tt>, browse to the revision you're interested in using the Up/Down arrow keys, and press D to get a diff for the selected changeset.
|
128
|
+
* <b>See what's been committed since the last public release</b>. So that you can list it in your release notes, for example...
|
129
|
+
* <b>Review other people's code</b>. (There's even a mark-as-reviewed feature*, if you want to keep track of which revisions have been reviewed...)
|
130
|
+
* <b>Searching for a change you know you've made</b> but don't remember what revision that was it. (Hint: Use the "grep this changeset" feature.)
|
131
|
+
* Figure out what the <b>difference is between two branches</b>.
|
132
|
+
|
133
|
+
Defaults to latest-first, but you can pass it the <tt>--forwards</tt> flag to browse from the other direction (start at the <i>oldest revision</i> and step forwards through time).
|
110
134
|
|
135
|
+
(*The mark-as-reviewed feature requires the modification of your repository's pre-revprop-change hook.)
|
111
136
|
|
112
137
|
== <tt>svn status</tt>
|
113
138
|
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: svn-command
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
6
|
+
version: 0.2.7
|
7
7
|
date: 2007-05-01 00:00:00 -07:00
|
8
8
|
summary: A nifty wrapper command for Subversion's command-line svn client
|
9
9
|
require_paths:
|
@@ -27,7 +27,7 @@ signing_key:
|
|
27
27
|
cert_chain:
|
28
28
|
post_install_message: |
|
29
29
|
---------------------------------------------------------------------------------------------------
|
30
|
-
Please run _svn_command_post_install to finalize the installation.
|
30
|
+
Please run sudo /usr/bin/_svn_command_post_install to finalize the installation.
|
31
31
|
---------------------------------------------------------------------------------------------------
|
32
32
|
|
33
33
|
authors:
|