1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WSLで、hg statusがファイル属性diffを出しすぎる問題の修正

Posted at

WSL上でhg statusをしたとき、やたらとファイル属性についてのdiffが出てしまうことがあった。

$ hg diff
(nothing)
$ hg diff -g
diff --git a/.hgignore b/.hgignore
old mode 100644
new mode 100755
... (属性についての大量のdiff) ...

こんな感じで修正:

1.WSL設定を変更

$ cat /etc/wsl.conf
[automount]
root
 = /
options = "metadata"  # これを追加

2.WSLをリスタート

> wsl -t {YOUR_DISTRIBUTION_NAME}
> wsl

3.hgのstate rebuild

$ hg debugrebuilddirstate
$ hg update -C {YOUR_BRANCH_NAME}

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?