piston 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,14 @@
1
1
  *SVN*
2
2
 
3
+ 2006-08-30 1.1.1
4
+ * Add contrib/piston [Michael Schuerig]
5
+ * Non-recursively add the root directory of the managed folder then set Piston
6
+ properties before adding the contents of the managed folder. This is to
7
+ help ease work along if an inconsistent EOL is encountered during the
8
+ import. The user can finish the import by svn add'ing the rest of the
9
+ folder until all files are added. Piston properties will already have been
10
+ set.
11
+
3
12
  2006-08-26 1.1.0
4
13
  * New 'convert' subcommand converts existing svn:externals to Piston managed
5
14
  folders. Thanks to Dan Kubb for the idea.
data/README CHANGED
@@ -56,6 +56,20 @@ When you want to update again, you unlock:
56
56
  'vendor/rails' unlocked.
57
57
 
58
58
 
59
+ = Contributions
60
+
61
+ == Bash Shell Completion Script
62
+
63
+ Michael Schuerig contributed a Bash shell completion script. You should copy
64
+ +contrib/piston+ from your gem repository to the appropriate folder. Michael
65
+ said:
66
+
67
+ I've put together a bash completion function for piston. On Debian, I
68
+ just put it in /etc/bash_completion.d, alternatively, the contents can
69
+ be copied to ~/.bash_completion. I don't know how things are organized
70
+ on other Unix/Linux systems.
71
+
72
+
59
73
  = Caveats
60
74
 
61
75
  == Speed
data/Rakefile CHANGED
@@ -34,7 +34,7 @@ spec = Gem::Specification.new do |s|
34
34
  s.executables = ["piston"]
35
35
  s.default_executable = "piston"
36
36
 
37
- s.files = [ "CHANGELOG", "README", "LICENSE", "Rakefile" ] + FileList["{bin,test,lib}/**/*"].to_a
37
+ s.files = [ "CHANGELOG", "README", "LICENSE", "Rakefile" ] + FileList["{contrib,bin,test,lib}/**/*"].to_a
38
38
 
39
39
  s.require_path = 'lib'
40
40
  s.has_rdoc = false
data/contrib/piston ADDED
@@ -0,0 +1,43 @@
1
+ have piston &&
2
+ _piston()
3
+ {
4
+ local cur prev commands options command
5
+
6
+ COMPREPLY=()
7
+ cur=${COMP_WORDS[COMP_CWORD]}
8
+
9
+ commands='update convert help unlock lock import'
10
+
11
+ if [[ $COMP_CWORD -eq 1 ]] ; then
12
+ if [[ "$cur" == -* ]]; then
13
+ COMPREPLY=( $( compgen -W '--version' -- $cur ) )
14
+ else
15
+ COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
16
+ fi
17
+ else
18
+
19
+ prev=${COMP_WORDS[COMP_CWORD-1]}
20
+ command=${COMP_WORDS[1]}
21
+
22
+ if [[ "$cur" == -* ]]; then
23
+ case $command in
24
+ @(update|import))
25
+ options='-r --revision --lock --verbose'
26
+ ;;
27
+ esac
28
+ options="$options --verbose"
29
+
30
+ COMPREPLY=( $( compgen -W "$options" -- $cur ) )
31
+ else
32
+ if [[ "$command" == @(help|h|\?) ]]; then
33
+ COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
34
+ else
35
+ _filedir
36
+ fi
37
+ fi
38
+ fi
39
+
40
+ return 0
41
+ }
42
+
43
+ [ -n "${have:-}" ] && complete -F _piston $default piston
@@ -30,13 +30,20 @@ module Piston
30
30
  break
31
31
  end
32
32
 
33
- svn :add, '--force', dir
33
+ # Add so we can set properties
34
+ svn :add, '--non-recursive', '--force', dir
35
+
36
+ # Set the properties
34
37
  svn :propset, Piston::ROOT, repos, dir
35
38
  svn :propset, Piston::UUID, info['Repository UUID'], dir
36
39
  svn :propset, Piston::REMOTE_REV, revision, dir
37
40
  svn :propset, Piston::LOCAL_REV, my_revision, dir
38
41
  svn :propset, Piston::LOCKED, revision, dir if lock
39
42
 
43
+ # Finish adding. If we get an error, at least the properties will be
44
+ # set and the user can handle the rest
45
+ svn :add, '--force', dir
46
+
40
47
  logging_stream.puts "Exported r#{revision} from '#{repos}' to '#{dir}'"
41
48
  end
42
49
 
@@ -2,7 +2,7 @@ module Piston
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: piston
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2006-08-27 00:00:00 +00:00
6
+ version: 1.1.1
7
+ date: 2006-08-31 00:00:00 +00:00
8
8
  summary: Piston is a utility that enables merge tracking of remote repositories.
9
9
  require_paths:
10
10
  - lib
@@ -33,6 +33,7 @@ files:
33
33
  - README
34
34
  - LICENSE
35
35
  - Rakefile
36
+ - contrib/piston
36
37
  - bin/piston
37
38
  - lib/core_ext
38
39
  - lib/piston