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

Unified Diff: tools/release/version.dart

Issue 11117015: Fix version when a relative path is used. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/release/version.dart
===================================================================
--- tools/release/version.dart (revision 13601)
+++ tools/release/version.dart (working copy)
@@ -149,8 +149,8 @@
// "branch". Since we have both trunk and bleeding edge in the same
// repository and since we always build TOT we need this to get the
// right version number.
- Path root =
- new Path.fromNative(_versionFileName).directoryPath.directoryPath;
+ Path toolsDirectory = new Path.fromNative(_versionFileName).directoryPath;
+ Path root = toolsDirectory.join(new Path(".."));
options.workingDirectory = root.toNativePath();
return Process.run(command, arguments, options).transform((result) {
if (result.exitCode != 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698