| ... | @@ -12,6 +12,7 @@ pub const DepType = enum { | ... | @@ -12,6 +12,7 @@ pub const DepType = enum { |
| 12 | .git => { | 12 | .git => { |
| 13 | _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", rpath, dpath}); | 13 | _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", rpath, dpath}); |
| 14 | }, | 14 | }, |
| | 15 | .hg => { _ = try u.run_cmd(null, &[_][]const u8{"hg", "clone", rpath, dpath}); }, |
| 15 | else => { | 16 | else => { |
| 16 | u.assert(false, "dep type {} not configured for pull: {}", .{@tagName(self), rpath}); | 17 | u.assert(false, "dep type {} not configured for pull: {}", .{@tagName(self), rpath}); |
| 17 | }, | 18 | }, |
| ... | @@ -24,6 +25,7 @@ pub const DepType = enum { | ... | @@ -24,6 +25,7 @@ pub const DepType = enum { |
| 24 | _ = try u.run_cmd(dpath, &[_][]const u8{"git", "fetch"}); | 25 | _ = try u.run_cmd(dpath, &[_][]const u8{"git", "fetch"}); |
| 25 | _ = try u.run_cmd(dpath, &[_][]const u8{"git", "pull"}); | 26 | _ = try u.run_cmd(dpath, &[_][]const u8{"git", "pull"}); |
| 26 | }, | 27 | }, |
| | 28 | .hg => { _ = try u.run_cmd(dpath, &[_][]const u8{"hg", "pull"}); }, |
| 27 | else => { | 29 | else => { |
| 28 | u.assert(false, "dep type {} not configured for update: {}", .{@tagName(self), rpath}); | 30 | u.assert(false, "dep type {} not configured for update: {}", .{@tagName(self), rpath}); |
| 29 | }, | 31 | }, |