Make status -C work with merge+rename
authorMatt Mackall <mpm@selenic.com>
Wed, 04 Oct 2006 17:59:27 -0500
changeset 3256 7c114915fbdb
parent 3255 f05c182430a0
child 3257 c93ce7f10f85
Make status -C work with merge+rename
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2532,8 +2532,7 @@ def status(ui, repo, *pats, **opts):
 
         for f in changes:
             ui.write(format % f)
-            if ((all or opts.get('copies')) and not opts.get('no_status')
-                and opt == 'added'):
+            if ((all or opts.get('copies')) and not opts.get('no_status')):
                 copied = repo.dirstate.copied(f)
                 if copied:
                     ui.write('  %s%s' % (copied, end))