| commit 408: | 0689f1e782c6 |
| parent 407: | 6909cfc26686 |
| branch: | default |
2 months ago
Changed (Δ60 bytes):
lib/amp.rb (5 lines added, 1 lines removed)
lib/amp/profiling_hacks.rb (12 lines added, 10 lines removed)
lib/amp/repository/abstract/common_methods/local_repo.rb (1 lines added, 0 lines removed)
lib/amp/repository/abstract/common_methods/staging_area.rb (0 lines added, 1 lines removed)
lib/amp/repository/mercurial/repo_format/staging_area.rb (1 lines added, 1 lines removed)
lib/amp/repository/mercurial/repositories/local_repository.rb (0 lines added, 1 lines removed)
| … | … | @@ -13,8 +13,12 @@ Amp::EXT_ROOT = File.expand_path File.jo |
13 |
13 |
# Are we a command-line app? Default to no. |
14 |
14 |
$cl ||= false |
15 |
15 |
|
16 |
||
17 |
||
16 |
18 |
require "amp/support/loaders.rb" |
17 |
19 |
|
20 |
need { 'amp/profiling_hacks' } |
|
21 |
||
18 |
22 |
#require 'profile' |
19 |
23 |
require 'fileutils' |
20 |
24 |
require 'stringio' |
| … | … | @@ -249,4 +253,4 @@ if ENV["TESTING"] == "true" |
249 |
253 |
end |
250 |
254 |
|
251 |
255 |
# Benchmarking stuff |
252 |
need { 'amp/profiling_hacks' } |
|
256 |
Up to file-list lib/amp/profiling_hacks.rb:
| … | … | @@ -22,15 +22,17 @@ end |
22 |
22 |
HELP |
23 |
23 |
end |
24 |
24 |
|
25 |
|
|
25 |
$hash = Hash.new {|h, k| h[k] = 0 } |
|
26 |
||
27 |
# Kernel.module_eval do |
|
26 |
28 |
# |
27 |
# Hash.module_eval do |
|
28 |
# show_caller_for :initialize_copy, "$hash[caller[0]] += 1" |
|
29 |
# show_caller_for :catch, "$hash[caller[0]] += 1" |
|
30 |
# # show_caller_for :throw, "$hash[caller[0]] += 1" |
|
29 |
31 |
# end |
30 |
# |
|
31 |
# if ENV["TESTING"] == "true" |
|
32 |
# END { |
|
33 |
# require 'pp' |
|
34 |
# STDERR.puts $hash.inspect if $hash.any? |
|
35 |
# } |
|
36 |
# end |
|
32 |
||
33 |
if ENV["TESTING"] == "true" |
|
34 |
END { |
|
35 |
require 'pp' |
|
36 |
puts $hash.sort.inspect if $hash.any? |
|
37 |
} |
|
38 |
end |
Up to file-list lib/amp/repository/abstract/common_methods/local_repo.rb:
| … | … | @@ -228,6 +228,7 @@ EOF |
228 |
228 |
status.each {|k, v| v.sort! } # sort dem fuckers |
229 |
229 |
status[:delta] = delta if opts[:delta] |
230 |
230 |
status.each {|k, _| status.delete k if opts[:only] && !opts[:only].include?(k) } |
231 |
status |
|
231 |
232 |
end |
232 |
233 |
|
233 |
234 |
## |
Up to file-list lib/amp/repository/abstract/common_methods/staging_area.rb:
| … | … | @@ -74,7 +74,6 @@ module Amp |
74 |
74 |
# @return [Hash] the updated found_files hash |
75 |
75 |
def find_with_patterns(found_files, dirs, match) |
76 |
76 |
results = found_files |
77 |
||
78 |
77 |
Find.find(*dirs) do |f| |
79 |
78 |
tf = f[(repo.root.size+1)..-1] |
80 |
79 |
Find.prune if results[tf] |
Up to file-list lib/amp/repository/mercurial/repo_format/staging_area.rb:
| … | … | @@ -8,7 +8,7 @@ module Amp |
8 |
8 |
alias_method :repository, :repo |
9 |
9 |
|
10 |
10 |
def initialize(repo) |
11 |
@ignore_all = |
|
11 |
@ignore_all = nil |
|
12 |
12 |
@repo = repo |
13 |
13 |
@check_exec = false |
14 |
14 |
end |
Up to file-list lib/amp/repository/mercurial/repositories/local_repository.rb:
