Fossil

View Ticket
Login

View Ticket

Ticket Hash: 118a98cb386c0e6ee4553a70cb420670b4e93499
Title: removing a directory doesn't work with a trailing slash
Status: Fixed Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Fixed
Last Modified: 2011-09-08 22:58:33
Version Found In: 1d713f3f4d
Description:
Doing fossil rm foo/bar/ lists all the files contained in foo/bar as marked deleted, but fossil changes don't show any change and fossil commit don't commit anything.

fossil rm foo/bar without the trailing slash however, does work. 

With the trailing slash, the output of fossil rm foo/bar/ displays the files path with two slashes after bar, which is probably the cause of the problem.

Since bash appends a trailng slah after auto-completing a directory name with tab, it is easy to stumble upon this problem which can give the impression that removing a directory is broken.

<hr><i>anonymous added on 2010-08-11 02:58:05:</i><br>
Process input path with function "file_simplify_name" for command "add" and "delete".

Have a fun!

<hr /><i>anonymous claiming to be sean@chittenden.org added on 2011-03-21 00:35:40 UTC:</i><br />
This ticket can probably be closed as a result of [04ddad7ab8e5c8bfe23daad995a73ead05d428fd].

<hr /><i>dmitry added on 2011-09-08 22:58:33 UTC:</i><br />
I've verified that it has been fixed as mentioned above.

Attachments: