Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Issue 1453213002: Add support for running git in tests (Closed)

Created:
5 years, 1 month ago by Brian Wilkerson
Modified:
5 years, 1 month ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 26
Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -0 lines) Patch
A pkg/analysis_server/test/stress/utilities/git.dart View 1 chunk +553 lines, -0 lines 26 comments Download

Messages

Total messages: 6 (1 generated)
Brian Wilkerson
5 years, 1 month ago (2015-11-17 19:03:28 UTC) #2
Paul Berry
https://codereview.chromium.org/1453213002/diff/1/pkg/analysis_server/test/stress/utilities/git.dart File pkg/analysis_server/test/stress/utilities/git.dart (right): https://codereview.chromium.org/1453213002/diff/1/pkg/analysis_server/test/stress/utilities/git.dart#newcode32 pkg/analysis_server/test/stress/utilities/git.dart:32: * command (the [input]). Git diff has a lot ...
5 years, 1 month ago (2015-11-17 19:49:31 UTC) #3
Brian Wilkerson
https://codereview.chromium.org/1453213002/diff/1/pkg/analysis_server/test/stress/utilities/git.dart File pkg/analysis_server/test/stress/utilities/git.dart (right): https://codereview.chromium.org/1453213002/diff/1/pkg/analysis_server/test/stress/utilities/git.dart#newcode32 pkg/analysis_server/test/stress/utilities/git.dart:32: * command (the [input]). > Git diff has a ...
5 years, 1 month ago (2015-11-18 17:36:46 UTC) #4
Brian Wilkerson
Committed patchset #1 (id:1) manually as 905cb67e99ba113b9be72d25baf68f77b2fcd423 (presubmit successful).
5 years, 1 month ago (2015-11-18 17:37:21 UTC) #5
Paul Berry
5 years, 1 month ago (2015-11-18 18:03:19 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1453213002/diff/1/pkg/analysis_server/test/st...
File pkg/analysis_server/test/stress/utilities/git.dart (right):

https://codereview.chromium.org/1453213002/diff/1/pkg/analysis_server/test/st...
pkg/analysis_server/test/stress/utilities/git.dart:32: * command (the [input]).
On 2015/11/18 17:36:46, Brian Wilkerson wrote:
> Actually, I think we correctly ignore context lines.

We ignore them, but that won't give correct results for two reasons: (1) the
numbers that appear above the diff hunk (on the line beginning "@@") include
context lines, so if we don't account for that we'll apply the diff in the wrong
place.  (2) if two hunks are closer together than the number of context lines,
Git will combine them, and we won't handle that properly.  E.g.:

@@ -100,5 +100,5 @@
 context line
-removed line
+added line
 context line
-removed line
+added line
 context line

https://codereview.chromium.org/1453213002/diff/1/pkg/analysis_server/test/st...
pkg/analysis_server/test/stress/utilities/git.dart:61: }
On 2015/11/18 17:36:46, Brian Wilkerson wrote:
> > Diff uses special formatting when the end of the file lacks a newline. 
> Consider
> > adding code to support this.
> 
> I'll need a pointer to understand what needs to happen.

Unfortunately I don't have a pointer to give you (I don't know if there is one).
 But I think if you just try diffing files that do/don't end in a newline it
should be pretty obvious.

Powered by Google App Engine
This is Rietveld 408576698