scm: mercurial: add unit adapter test repository for path contains space (#2664, #4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4998 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-04 08:08:13 +00:00
parent 53249469a0
commit d8e1af6156
1 changed files with 12 additions and 0 deletions

View File

@ -261,6 +261,18 @@ begin
assert_equal bm, @adapter.branchmap
end
def test_path_space
p = 'README (1)[2]&,%.-3_4'
[15, '933ca60293d7'].each do |r1|
assert @adapter.diff(p, r1)
assert @adapter.cat(p, r1)
assert_equal 1, @adapter.annotate(p, r1).lines.length
[25, 'afc61e85bde7'].each do |r2|
assert @adapter.diff(p, r1, r2)
end
end
end
private
def test_hgversion_for(hgversion, version)