Fossil

View Ticket
Login
2011-02-06
21:45 New ticket [cde4448290] Stash for an uncommitted, untracked file gives no warning or error. ... (artifact: 6e06c2a220 user: anonymous)

Ticket Hash: cde4448290586f08a18ec76224258683006ad98e
Title: Stash for an uncommitted, untracked file gives no warning or error
Status: Open Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution:
Last Modified: 2011-02-06 21:45:34
15.15 years ago
Created: 2011-02-06 21:45:34
15.15 years ago
Version Found In: d5729c31b5
Description:
If you try and explicitly stash a file that isn't being tracked, you get no warning.
echo "hello" > test.txt
fossil stash save -m "Test stash" test.txt   # Would expect an error when running this line

# I managed to do the following: echo "world" > test.txt fossil stash pop

And blew away some work. My fault for not having committed the changes, but silently failing definitely seemed like note-worthy bug.