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

Side by Side Diff: test/descriptor/git.dart

Issue 1153643002: Use "package:" imports for pub. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Code review changes Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/descriptor.dart ('k') | test/descriptor/tar.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library descriptor.git; 5 library descriptor.git;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:path/path.dart' as path; 9 import 'package:path/path.dart' as path;
10 import 'package:pub/src/git.dart' as git;
10 import 'package:scheduled_test/scheduled_test.dart'; 11 import 'package:scheduled_test/scheduled_test.dart';
11 import 'package:scheduled_test/descriptor.dart'; 12 import 'package:scheduled_test/descriptor.dart';
12 13
13 import '../../lib/src/git.dart' as git;
14
15 /// Describes a Git repository and its contents. 14 /// Describes a Git repository and its contents.
16 class GitRepoDescriptor extends DirectoryDescriptor { 15 class GitRepoDescriptor extends DirectoryDescriptor {
17 GitRepoDescriptor(String name, List<Descriptor> contents) 16 GitRepoDescriptor(String name, List<Descriptor> contents)
18 : super(name, contents); 17 : super(name, contents);
19 18
20 /// Creates the Git repository and commits the contents. 19 /// Creates the Git repository and commits the contents.
21 Future create([String parent]) => schedule(() { 20 Future create([String parent]) => schedule(() {
22 return super.create(parent).then((_) { 21 return super.create(parent).then((_) {
23 return _runGitCommands(parent, [ 22 return _runGitCommands(parent, [
24 ['init'], 23 ['init'],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 'GIT_COMMITTER_EMAIL': 'pub@dartlang.org' 68 'GIT_COMMITTER_EMAIL': 'pub@dartlang.org'
70 }; 69 };
71 70
72 if (parent == null) parent = defaultRoot; 71 if (parent == null) parent = defaultRoot;
73 return git.run(args, 72 return git.run(args,
74 workingDir: path.join(parent, name), 73 workingDir: path.join(parent, name),
75 environment: environment); 74 environment: environment);
76 } 75 }
77 } 76 }
78 77
OLDNEW
« no previous file with comments | « test/descriptor.dart ('k') | test/descriptor/tar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698