Patchwork D1444: tweakdefaults: turn on ui.statuscopies

login
register
mail settings
Submitter phabricator
Date Nov. 17, 2017, 1:23 a.m.
Message ID <differential-rev-PHID-DREV-s3wve3jordaq7iyspgdq-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25614/
State Superseded
Headers show

Comments

phabricator - Nov. 17, 2017, 1:23 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Seems obviously useful and probably off by default for historical
  reasons.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1444

AFFECTED FILES
  mercurial/ui.py
  tests/test-status.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-status.t b/tests/test-status.t
--- a/tests/test-status.t
+++ b/tests/test-status.t
@@ -572,6 +572,10 @@ 
   $ hg st --config ui.statuscopies=false
   M a
   R b
+  $ hg st --config ui.tweakdefaults=yes
+  M a
+    b
+  R b
 
 using log status template (issue5155)
   $ hg log -Tstatus -r 'wdir()' -C
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -49,6 +49,8 @@ 
 [ui]
 # The rollback command is dangerous. As a rule, don't use it.
 rollback = False
+# Make `hg status` report copy information
+statuscopies = yes
 
 [commands]
 # Make `hg status` emit cwd-relative paths by default.