Patchwork [5,of,8] ui: add ui.statuscopies to progressive mode

login
register
mail settings
Submitter Mathias De Maré
Date March 28, 2015, 10:51 a.m.
Message ID <d8d2248056c411e564fe.1427539865@waste.org>
Download mbox | patch
Permalink /patch/8326/
State Changes Requested
Headers show

Comments

Mathias De Maré - March 28, 2015, 10:51 a.m.
# HG changeset patch
# User Mathias De Maré <mathias.demare@gmail.com>
# Date 1427229699 -3600
#      Tue Mar 24 21:41:39 2015 +0100
# Node ID d8d2248056c411e564fed884887b481bf7abc28a
# Parent  6b6bc41ccff75869e2f760ee595e564a0334060e
ui: add ui.statuscopies to progressive mode

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -482,6 +482,8 @@ 
 
         if not self.hasconfig('diff', 'git'):
             self.setconfig('diff', 'git', 'True')
+        if not self.hasconfig('ui', 'statuscopies'):
+            self.setconfig('ui', 'statuscopies', 'True')
 
     def plain(self, feature=None):
         '''is plain mode active?
diff --git a/tests/test-status.t b/tests/test-status.t
--- a/tests/test-status.t
+++ b/tests/test-status.t
@@ -446,6 +446,10 @@ 
   $ hg st --config ui.statuscopies=false
   M a
   R b
+  $ hg st --config ui.progressive=true
+  M a
+    b
+  R b
 
 Other "bug" highlight, the revision status does not report the copy information.
 This is buggy behavior.