Bug 6483 - hg status -I does not work correctly with the Rust extensions
Summary: hg status -I does not work correctly with the Rust extensions
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: default branch
Hardware: PC Linux
: wish feature
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-10 10:57 UTC by Raphaël Gomès
Modified: 2021-02-19 00:00 UTC (History)
1 user (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Gomès 2021-02-10 10:57 UTC
I just noticed that:

  $ hg init repo
  $ cd repo
  $ touch a.rb b.rb c.sql
  $ hg add a.rb b.rb c.sql
  $ HGMODULEPOLICY=rust+c hg st -a -I '**/*.rb'
    A a.rb
    A b.rb
    A c.sql
  $ HGMODULEPOLICY=c hg st -a -I '**/*.rb'
    A a.rb
    A b.rb
    A c.sql

It appears to work correctly when listing unknowns, though.

  $ HGMODULEPOLICY=rust+c hg st -au -I '**/*.rb'
    A a.rb
    A b.rb
Comment 1 Raphaël Gomès 2021-02-10 11:01 UTC
(In reply to Raphaël Gomès from comment #0)
Whops, the c version (correctly) does NOT list the sql file.
Comment 2 HG Bot 2021-02-11 17:05 UTC
Fixed by https://mercurial-scm.org/repo/hg/rev/fb6eca7b8c63
Raphaël Gomès <rgomes@octobus.net>
rust-status: honor matcher when using the dirstate-only fast-path (issue6483)

Differential Revision: https://phab.mercurial-scm.org/D9977

(please test the fix)
Comment 3 Bugzilla 2021-02-19 00:00 UTC
Bug was set to TESTING for 7 days, resolving