[Bug 6883] New: hg add: implicit add behaviour change

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Mon Jul 1 14:36:54 UTC 2024


https://bz.mercurial-scm.org/show_bug.cgi?id=6883

            Bug ID: 6883
           Summary: hg add: implicit add behaviour change
           Product: Mercurial
           Version: 6.7.4
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: mathias.demare at gmail.com
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

We had a use case where we import files from an external system. To do so, we
ran an 'hg rm' on a directory, copied over the new files from the external
system and ran 'hg add'.

This behaviour seems to have been changed/broken by:

changeset:   52938:b8f9911c8dca
user:        Martin von Zweigbergk <martinvonz at google.com>
date:        Wed Nov 29 08:32:24 2023 -0800
files:       mercurial/cmdutil.py tests/test-symlinks.t
description:
add: don't attempt to add back removed files unless explicitly listed


It sounds like the behaviour change is on purpose, I'm still filing it to at
least mention that we're seeing impact.

Would it make sense to add a small note in 'hg help add' for this behaviour
change? I could send a patch...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list