pvn 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -61,10 +61,12 @@ module PVN
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def relative_to_absolute rel, path
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
64
|
+
limit = rel[0, 1] == '-' ? rel.to_i.abs : nil
|
65
|
+
|
66
|
+
cmdargs = SVNx::LogCommandArgs.new :limit => limit, :path => path, :use_cache => false
|
67
|
+
|
68
|
+
cmd = SVNx::LogCommand.new cmdargs
|
69
|
+
xmllines = cmd.execute
|
68
70
|
|
69
71
|
reventry = PVN::Revision::Entry.new :value => rel, :xmllines => xmllines
|
70
72
|
revval = reventry.value.to_s
|
data/lib/svnx/log/command.rb
CHANGED
@@ -17,12 +17,14 @@ module SVNx
|
|
17
17
|
|
18
18
|
class LogCommandLine < CommandLine
|
19
19
|
def initialize args = Array.new
|
20
|
+
info "args: #{args}"
|
20
21
|
super "log", args.to_a
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
24
25
|
class LogCommandLineCaching < CachingCommandLine
|
25
26
|
def initialize args = Array.new
|
27
|
+
info "args: #{args}"
|
26
28
|
super "log", args.to_a
|
27
29
|
end
|
28
30
|
|
@@ -77,17 +79,12 @@ module SVNx
|
|
77
79
|
|
78
80
|
class LogCommand < Command
|
79
81
|
def initialize args
|
80
|
-
info "args.to_a: #{args.to_a}"
|
81
82
|
@use_cache = args.use_cache
|
82
|
-
info "@use_cache: #{@use_cache}"
|
83
83
|
super
|
84
84
|
end
|
85
85
|
|
86
86
|
def command_line
|
87
|
-
|
88
|
-
cmdline = @use_cache ? LogCommandLineCaching.new(@args) : LogCommandLine.new(@args)
|
89
|
-
info "cmdline: #{cmdline}"
|
90
|
-
cmdline
|
87
|
+
@use_cache ? LogCommandLineCaching.new(@args) : LogCommandLine.new(@args)
|
91
88
|
end
|
92
89
|
end
|
93
90
|
end
|
metadata
CHANGED