Skip to content
Snippets Groups Projects
  • Martin von Zweigbergk's avatar
    2dac9d6a0af9
    match: don't print explicitly listed files with wrong case (BC) · 2dac9d6a0af9
    Martin von Zweigbergk authored
    On case-insensitive file systems, if file A exists and you try to
    remove it (or add, etc.) by specifying a different case, you will see
    something like this:
    
      $ hg rm a
      removing file A
    
    I honestly found this surprising because it seems to me like it was
    explicitly listed by the user. Still, there is a comment in the code
    describing it, so it is very clearly intentional. The code was added
    in baa11dde8c0e (match: add a subclass for dirstate normalizing of the
    matched patterns, 2015-04-12).
    
    I'm going to do a lot of refactoring to matchers and the feature
    mentioned above is going to get in my way. I'm therefore removing it
    for the time being and we can hopefully add it back when I'm done.
    2dac9d6a0af9
    History
    match: don't print explicitly listed files with wrong case (BC)
    Martin von Zweigbergk authored
    On case-insensitive file systems, if file A exists and you try to
    remove it (or add, etc.) by specifying a different case, you will see
    something like this:
    
      $ hg rm a
      removing file A
    
    I honestly found this surprising because it seems to me like it was
    explicitly listed by the user. Still, there is a comment in the code
    describing it, so it is very clearly intentional. The code was added
    in baa11dde8c0e (match: add a subclass for dirstate normalizing of the
    matched patterns, 2015-04-12).
    
    I'm going to do a lot of refactoring to matchers and the feature
    mentioned above is going to get in my way. I'm therefore removing it
    for the time being and we can hopefully add it back when I'm done.