[Bug 5255] New: Passing a valid fileset to hg remove does not remove files
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Mon May 30 11:26:38 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5255
Bug ID: 5255
Summary: Passing a valid fileset to hg remove does not remove
files
Product: Mercurial
Version: 3.8.1
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: vostok4 at gmail.com
CC: mercurial-devel at selenic.com
I am trying to `hg remove` files that are previously tracked but now should be
ignored due to a change in my .hgignore file. The fileset:
"set:hgignore() and not ignored()"
The command works well for `hg status -A`, but `hg rem` with the same fileset
does not end up removing files (no error, just no output).
I will paste some information from an IRC chat in #mercurial on Freenode for
information:
## .hgignore contains:
# syntax: glob
# *.blend1
# *.blend1.meta
## current output of `hg sum`:
hg sum
parent: 156:ced245fc4b08
remove that commode for real?
branch: default
commit: (clean)
update: (current)
## these files were tracked by an older commit, and were not deleted by a
previous `hg rem "set:hgignore() and not ignored()"`
hg status -A "set:hgignore() and not ignored()"
C Assets\Models\00.Key_Room\Glass_001\Animation\Glass_animation_001.blend1
C Assets\Models\00.Key_Room\OpenBook_001-i\i-OpenBook_001.blend1
C Assets\Models\00.Key_Room\OpenBook_001-i\i-OpenBook_002.blend1
C
Assets\Models\00.Key_Room\Photoframe_002_(standing)-i\i-Photoframe_002_(standing).blend1
C Assets\Models\00.Key_Room\Window_003-i\i-Window_003.blend1
C Assets\Models\01.Corridor\Corridor a i b\Cirridor_Doors.blend1
C Assets\Models\01.Corridor\Corridor a i b\Cirridor_part_A (straight).blend1
C Assets\Models\01.Corridor\Corridor a i b\Corridor_Part_B (curvy).blend1
C
Assets\Models\01.Corridor\OpenBook_002\AnimOpenBook_001\AnimOpenBook_001.blend1
C Assets\Models\01.Corridor\OpenBook_002\i-OpenBook_002.blend1
C Assets\Models\01.Corridor\OpenBook_002\i-OpenBook_003.blend1
C Assets\Models\02.Hotel_room\Hotel_Room_A.blend1
C Assets\Models\02.Hotel_room\Models\Bed_001-i\i_Bed_002.blend1
C Assets\Models\02.Hotel_room\Models\Flower_Hotel\Flower_Hotel.blend1
C Assets\Models\02.Hotel_room\Models\Lights\Light.blend1
C Assets\Models\02.Hotel_room\Models\Paintings_Hotel\Painting_Hotel_001.blend1
C Assets\Models\02.Hotel_room\Models\Paintings_Hotel\Painting_Hotel_003.blend1
C Assets\Models\02.Hotel_room\hotel_room.blend1
C Assets\Models\05. Staircase\i-Barriers_001\i-Barriers_001.blend1
C Assets\Models\05. Staircase\i-Barriers_001\i-Barriers_002.blend1
C Assets\Models\05. Staircase\i-Door_(entrance)\i-Door_(entrance).blend1
C Assets\Models\07.Bathroom_A\07.Bathroom.blend1
C Assets\Models\07.Bathroom_A\07.Bathroom_02.blend1
C
Assets\Models\07.Bathroom_A\Models\Bottles_Bathroom_001\Bottles_Bathroom_001.blend1
C
Assets\Models\07.Bathroom_A\Models\Mirror_Bathroom_001\mirror_animation1.blend1
C Assets\Models\07.Bathroom_A\Models\Shower_Tap_001\Shawer_Tap_001.blend1
C Assets\Models\07.Bathroom_A\Models\Soap_Bottle_001\Soap_Bottle_001.blend1
C Assets\Models\07.Bathroom_A\Models\WC_Bathroom_001\WC_Bathroom_001.blend1
C Assets\Models\Armchair_001-i\i-Armchair_001 (2).blend1
C Assets\Models\Armchair_001-i\i-Armchair_001.blend1
C Assets\Models\Chair_001-i\i-Chair_001_with_blanket.blend1
C Assets\Models\Chair_001-i\i-Chair_001_without_blanket.blend1
C Assets\Models\Glass_all_and_Broken\Bottle_001\i-Bottle_001.blend1
C
Assets\Models\Glass_all_and_Broken\Bottle_001_broken_01\i-Bottle_001_broken_01.blend1
C
Assets\Models\Glass_all_and_Broken\Bottle_001_broken_02\i-Bottle_001_broken_02.blend1
C Assets\Models\HospitalBed_001\HospitalBed_001.blend1
C Assets\Models\HospitalBed_001\i-HospitalBed_001.blend1
C Assets\Models\LEVEL01ab_corridor_only\Cirridor_part_A (straight).blend1
C Assets\Models\Lamp_001_(big_standing)-i\i-Lamp_001_(big_standing).blend1
C Assets\Models\Lightbulb-i\i-Lightbulb.blend1
C Assets\Models\Wife\Wife_textured-ch\Wife_textured.blend1
C Assets\Models\Window_001-i\i-Window_001.blend1
C Assets\Models\i-Shelf_001_(wall)\i-Shelf_001_(wall).blend1
## now trying to delete them:
hg rem "set:hgignore() and not ignored()"
C:\work\alpha>hg sum
parent: 156:ced245fc4b08
remove that commode for real?
branch: default
commit: (clean)
update: (current)
There is a list of previous blend1 files that were successfully deleted at this
pastebin address (the bottom of the paste):
https://bpaste.net/show/1d73b7524944
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list