-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Add support for SHA-256 repositories
Use variable extensions.objectformat, if available, to determine the length of the hash id in the current repository.
Showing
26 changed files
with
309 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/sh | ||
|
||
. libtest.sh | ||
. libgit.sh | ||
|
||
test_require sha256 | ||
|
||
steps ' | ||
:save-display initial-diff.screen | ||
:20 # Move to a deleted line. | ||
:view-blame | ||
:scroll-right | ||
:save-display blame-deleted-line.screen | ||
' | ||
|
||
in_work_dir create_repo_from_tgz "$base_dir/files/sha256-scala-js-benchmarks.tgz" | ||
|
||
LINES=23 test_tig show ed3277a | ||
|
||
assert_equals 'initial-diff.screen' <<EOF | ||
commit ed3277a31a5a48def23854db7eaa7356871a29cbf26ba279cb8f1e4f93cf54fb | ||
Author: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
AuthorDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Commit: Jonas Fonseca <jonas.fonseca@gmail.com> | ||
CommitDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Add type parameter for js.Dynamic | ||
--- | ||
common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
diff --git a/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala b/commo | ||
index 4abd433..aa90cdf 100644 | ||
--- a/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | ||
+++ b/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | ||
@@ -15,7 +15,7 @@ object Benchmark { | ||
val benchmarks = js.Array[Benchmark]() | ||
val benchmarkApps = js.Array[BenchmarkApp]() | ||
- val global = js.Dynamic.global.asInstanceOf[js.Dictionary] | ||
+ val global = js.Dynamic.global.asInstanceOf[js.Dictionary[js.Any]] | ||
[diff] ed3277a31a5a48def23854db7eaa7356871a29cbf26ba279cb8f1e4f93cf54fb - li 87% | ||
EOF | ||
|
||
# Make sure that we find the commit that introduce the deleted line. | ||
assert_equals 'blame-deleted-line.screen' <<EOF | ||
0400 1x /* __ | ||
0400 2x ** ________ ___ / / ___ __ ____ Scala.js Benchmarks | ||
0400 3x ** / __/ __// _ | / / / _ | __ / // __/ (c) 2003-2013, LAMP/EPFL | ||
0400 4x ** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ (c) 2013, Jonas Fonseca | ||
0400 5x ** /____/\___/_/ |_/____/_/ | |__/ /____/ | ||
0400 6x ** |/____/ | ||
0400 7x \* | ||
0400 8x | ||
0400 9x package benchmarks | ||
0400 10x | ||
0400 11x import scala.compat.Platform | ||
0500 12x import scala.scalajs.js | ||
0500 13x | ||
0500 14x object Benchmark { | ||
0500 15x val benchmarks = js.Array[js.Function0[Unit]]() | ||
0500 16x | ||
0500 17x val global = js.Dynamic.global.asInstanceOf[js.Dictionary] | ||
0500 18x global("ScalaJSBenchmarks") = benchmarks | ||
0500 19x | ||
0500 20x def add(benchmark: Benchmark) { | ||
0500 21x benchmarks.push { | ||
[blame] bf7a4c4b17c1414cc88ca497bd750b12959a503c91b41e1f939c09be1999ff00 cha 21% | ||
EOF |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
#!/bin/sh | ||
# | ||
# Test display and options specific to the main view with sha256 object format. | ||
|
||
. libtest.sh | ||
. libgit.sh | ||
|
||
test_require sha256 | ||
|
||
export LINES=16 | ||
|
||
tigrc <<EOF | ||
set vertical-split = no | ||
EOF | ||
|
||
steps ' | ||
:save-display main-default.screen | ||
:set reference-format = (branch) [tag] @remote | ||
:save-display main-ref-format.screen | ||
:set reference-format = (branch) [tag] hide:remote | ||
:save-display main-remotes-hidden.screen | ||
:toggle commit-title-refs | ||
:save-display main-no-refs.screen | ||
:toggle commit-title-graph | ||
:toggle commit-title-graph | ||
:save-display main-no-graph.screen | ||
:4bf5f7eaa968deef5c5b67412ad79a3ba32de876a30ff7227751d72f7f39fb11 | ||
<Enter> | ||
:save-display main-with-diff.screen | ||
<Down> | ||
:save-display main-with-diff-next.screen | ||
' | ||
|
||
git_clone 'sha256-repo-one' | ||
|
||
test_tig | ||
|
||
assert_equals 'main-default.screen' <<EOF | ||
2010-04-07 05:37 +0000 Max Power o [master] {origin/master} {origin/ | ||
2010-03-29 17:15 +0000 Jørgen Thygesen Brahe o Commit 10 D | ||
2010-03-21 04:53 +0000 作者 o Commit 10 C | ||
2010-03-12 16:31 +0000 René Lévesque o Commit 10 B | ||
2010-03-04 04:09 +0000 A. U. Thor o Commit 10 A | ||
2010-02-23 15:46 +0000 Max Power o Commit 9 E | ||
2010-02-15 03:24 +0000 Jørgen Thygesen Brahe o Commit 9 D | ||
2010-02-06 15:02 +0000 作者 o Commit 9 C | ||
2010-01-29 02:40 +0000 René Lévesque o Commit 9 B | ||
2010-01-20 14:18 +0000 A. U. Thor o Commit 9 A | ||
2010-01-12 01:56 +0000 Max Power o Commit 8 E | ||
2010-01-03 13:33 +0000 Jørgen Thygesen Brahe o Commit 8 D | ||
2009-12-26 01:11 +0000 作者 o Commit 8 C | ||
2009-12-17 12:49 +0000 René Lévesque o <v1.0> Commit 8 B | ||
[main] eac7f3b2335d4e51865229144ae34be34f8a2ae1b8a88ee82c86f22b4ad57688 - co 28% | ||
EOF | ||
|
||
assert_equals 'main-ref-format.screen' <<EOF | ||
2010-04-07 05:37 +0000 Max Power o (master) @origin/master @origin/H | ||
2010-03-29 17:15 +0000 Jørgen Thygesen Brahe o Commit 10 D | ||
2010-03-21 04:53 +0000 作者 o Commit 10 C | ||
2010-03-12 16:31 +0000 René Lévesque o Commit 10 B | ||
2010-03-04 04:09 +0000 A. U. Thor o Commit 10 A | ||
2010-02-23 15:46 +0000 Max Power o Commit 9 E | ||
2010-02-15 03:24 +0000 Jørgen Thygesen Brahe o Commit 9 D | ||
2010-02-06 15:02 +0000 作者 o Commit 9 C | ||
2010-01-29 02:40 +0000 René Lévesque o Commit 9 B | ||
2010-01-20 14:18 +0000 A. U. Thor o Commit 9 A | ||
2010-01-12 01:56 +0000 Max Power o Commit 8 E | ||
2010-01-03 13:33 +0000 Jørgen Thygesen Brahe o Commit 8 D | ||
2009-12-26 01:11 +0000 作者 o Commit 8 C | ||
2009-12-17 12:49 +0000 René Lévesque o [v1.0] Commit 8 B | ||
[main] eac7f3b2335d4e51865229144ae34be34f8a2ae1b8a88ee82c86f22b4ad57688 - co 28% | ||
EOF | ||
|
||
assert_equals 'main-remotes-hidden.screen' <<EOF | ||
2010-04-07 05:37 +0000 Max Power o (master) Commit 10 E | ||
2010-03-29 17:15 +0000 Jørgen Thygesen Brahe o Commit 10 D | ||
2010-03-21 04:53 +0000 作者 o Commit 10 C | ||
2010-03-12 16:31 +0000 René Lévesque o Commit 10 B | ||
2010-03-04 04:09 +0000 A. U. Thor o Commit 10 A | ||
2010-02-23 15:46 +0000 Max Power o Commit 9 E | ||
2010-02-15 03:24 +0000 Jørgen Thygesen Brahe o Commit 9 D | ||
2010-02-06 15:02 +0000 作者 o Commit 9 C | ||
2010-01-29 02:40 +0000 René Lévesque o Commit 9 B | ||
2010-01-20 14:18 +0000 A. U. Thor o Commit 9 A | ||
2010-01-12 01:56 +0000 Max Power o Commit 8 E | ||
2010-01-03 13:33 +0000 Jørgen Thygesen Brahe o Commit 8 D | ||
2009-12-26 01:11 +0000 作者 o Commit 8 C | ||
2009-12-17 12:49 +0000 René Lévesque o [v1.0] Commit 8 B | ||
[main] eac7f3b2335d4e51865229144ae34be34f8a2ae1b8a88ee82c86f22b4ad57688 - co 28% | ||
EOF | ||
|
||
assert_equals 'main-no-refs.screen' <<EOF | ||
2010-04-07 05:37 +0000 Max Power o Commit 10 E | ||
2010-03-29 17:15 +0000 Jørgen Thygesen Brahe o Commit 10 D | ||
2010-03-21 04:53 +0000 作者 o Commit 10 C | ||
2010-03-12 16:31 +0000 René Lévesque o Commit 10 B | ||
2010-03-04 04:09 +0000 A. U. Thor o Commit 10 A | ||
2010-02-23 15:46 +0000 Max Power o Commit 9 E | ||
2010-02-15 03:24 +0000 Jørgen Thygesen Brahe o Commit 9 D | ||
2010-02-06 15:02 +0000 作者 o Commit 9 C | ||
2010-01-29 02:40 +0000 René Lévesque o Commit 9 B | ||
2010-01-20 14:18 +0000 A. U. Thor o Commit 9 A | ||
2010-01-12 01:56 +0000 Max Power o Commit 8 E | ||
2010-01-03 13:33 +0000 Jørgen Thygesen Brahe o Commit 8 D | ||
2009-12-26 01:11 +0000 作者 o Commit 8 C | ||
2009-12-17 12:49 +0000 René Lévesque o Commit 8 B | ||
[main] eac7f3b2335d4e51865229144ae34be34f8a2ae1b8a88ee82c86f22b4ad57688 - co 28% | ||
EOF | ||
|
||
assert_equals 'main-no-graph.screen' <<EOF | ||
2010-04-07 05:37 +0000 Max Power Commit 10 E | ||
2010-03-29 17:15 +0000 Jørgen Thygesen Brahe Commit 10 D | ||
2010-03-21 04:53 +0000 作者 Commit 10 C | ||
2010-03-12 16:31 +0000 René Lévesque Commit 10 B | ||
2010-03-04 04:09 +0000 A. U. Thor Commit 10 A | ||
2010-02-23 15:46 +0000 Max Power Commit 9 E | ||
2010-02-15 03:24 +0000 Jørgen Thygesen Brahe Commit 9 D | ||
2010-02-06 15:02 +0000 作者 Commit 9 C | ||
2010-01-29 02:40 +0000 René Lévesque Commit 9 B | ||
2010-01-20 14:18 +0000 A. U. Thor Commit 9 A | ||
2010-01-12 01:56 +0000 Max Power Commit 8 E | ||
2010-01-03 13:33 +0000 Jørgen Thygesen Brahe Commit 8 D | ||
2009-12-26 01:11 +0000 作者 Commit 8 C | ||
2009-12-17 12:49 +0000 René Lévesque Commit 8 B | ||
[main] eac7f3b2335d4e51865229144ae34be34f8a2ae1b8a88ee82c86f22b4ad57688 - co 28% | ||
EOF | ||
|
||
assert_equals 'main-with-diff.screen' <<EOF | ||
2010-01-12 01:56 +0000 Max Power Commit 8 E | ||
2010-01-03 13:33 +0000 Jørgen Thygesen Brahe Commit 8 D | ||
2009-12-26 01:11 +0000 作者 Commit 8 C | ||
2009-12-17 12:49 +0000 René Lévesque Commit 8 B | ||
[main] 4bf5f7eaa968deef5c5b67412ad79a3ba32de876a30ff7227751d72f7f39fb11 - co 28% | ||
commit 4bf5f7eaa968deef5c5b67412ad79a3ba32de876a30ff7227751d72f7f39fb11 | ||
Refs: [v1.0] | ||
Author: René Lévesque <rene.levesque@example.qc.ca> | ||
AuthorDate: Thu Dec 17 12:49:30 2009 +0000 | ||
Commit: Committer <c.ommitter@example.net> | ||
CommitDate: Thu Dec 17 12:49:30 2009 +0000 | ||
Commit 8 B | ||
[diff] 4bf5f7eaa968deef5c5b67412ad79a3ba32de876a30ff7227751d72f7f39fb11 - l 100% | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters