Skip to content

Commit 8b01fb4

Browse files
committed
Make Hg.hasLocalChanges consistent with Git
The git implementation doesn't check for untracked changes. For now, to pass the tests, just match the git behaviour, though, in future we probably want to check for them to avoid them being wiped on library reinstall.
1 parent 1083373 commit 8b01fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/haxelib/api/Vcs.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class Mercurial extends Vcs {
455455

456456
public function hasLocalChanges():Bool {
457457
final diff = run(["diff", "-U", "2", "--git", "--subrepos"]);
458-
final status = run(["status"]);
458+
final status = run(["status", "-q"]);
459459

460460
return diff.code + status.code + diff.out.length + status.out.length > 0;
461461
}

0 commit comments

Comments
 (0)