https://svn.lrde.epita.fr/svn/lrdetools/trunk
Index: ChangeLog
from Nicolas Pouillard <ertai(a)lrde.epita.fr>
Fix a bug in vcs list.
* vcs/lib/vcs/list.rb: Fix a bug with non versioned directories.
* vcs/NEWS: More entries, more acknowldgments.
* vcs/lib/vcs/vcs.rb: Update the example.
NEWS | 10 ++++++++++
lib/vcs/list.rb | 12 ++++++++----
lib/vcs/vcs.rb | 2 +-
3 files changed, 19 insertions(+), 5 deletions(-)
Index: vcs/NEWS
--- vcs/NEWS (revision 262)
+++ vcs/NEWS (working copy)
@@ -1,5 +1,7 @@
New in 0.4 ...:
+ * Vcs now supports ruby 1.8.3.
+
* Vcs extensions files:
- Protocol version:
You can now add `protocol_version "0.1"' in your extensions.
Thus
@@ -56,9 +58,16 @@
- Action supports (--do switch):
- svn list --junk --do rm
- svn list --precious --do wc
+ - svn list --unrecognize --do 'vcs-svn add'
+ - svn list --missing --do 'vcs-svn remove'
- svn junk: This command use `list' to remove all junk files.
+ - vcs back: find the youngest revision that passes a given test.
+ This feature is Based on prcs-back (LrdeTools) from Akim Demaille.
+
+ - svn ignore: an helper for the svn:ignore property.
+
* Sorted outputs:
- Vcs now supports sorting:
In a .vcs configuration file you can add a `sorting' key which
@@ -97,6 +106,7 @@
- diffstat
- message
- mk_form
+ - mk_iform
New in 0.3 2005-09-16:
Index: vcs/lib/vcs/vcs.rb
--- vcs/lib/vcs/vcs.rb (revision 262)
+++ vcs/lib/vcs/vcs.rb (working copy)
@@ -35,7 +35,7 @@
# example:
# svn checkout
http://foo.bar/proj # alias
# vcs-svn checkout
http://foo.bar/proj # wrapper
-# vcs --vcs Svn checkout
http://foo.bar/proj # manual
+# vcs --vcs svn checkout
http://foo.bar/proj # manual
#
# checkout
# checkout_
Index: vcs/lib/vcs/list.rb
--- vcs/lib/vcs/list.rb (revision 262)
+++ vcs/lib/vcs/list.rb (working copy)
@@ -35,15 +35,19 @@
files << '.' if files.empty?
files.each do |file|
file.to_path.find do |path|
- if path.to_s =~ /(\/|^)\.svn$/
- is_versioned << path.dirname
+ Find.prune if path.to_s =~ /(\/|^)\.svn$/
+ if (path.dirname + '.svn').exist?
+ if path.directory?
+ if (path + '.svn').exist?
+ next
+ else
Find.prune
end
- next if path.directory?
- if (path.dirname + '.svn').exist?
+ end
inside_versioned << path.to_s
else
outside_versioned << path
+ Find.prune
end
end
end