version control - Deleting tracked file from the file system vs hg remove -
i'd know if there consequences when deleting tracked file file system (e.g. via windows explorer) in comparison when using hg remove delete file system , untrack it.
in both cases, i'll commit afterwards, in first case tortoise hg marks file missing exclamation mark, second marks clean , ready removal.
besides there differences?
if go file system path , don't make other changes tracked files, hg give error when try commit:
nothing changed (1 missing files, see 'hg status')
(this special case of nothing changed
.)
if have changed else, hg won't complain @ point, file's status continue show missing hg status
. has negative effect of cluttering (mental) workspace , making harder tell @ glance working directory's current status is. moreover, the file remains in repository , restored hg update
revisions still being tracked!
hg remove
return error if file deleted filesystem; in case should use hg forget
tell mercurial stop tracking file.
if prefer doing big changes external utilities (like windows explorer), can use nifty hg addremove
automatically detects additions , removals. (the downside might remove , untrack accidentally deleted files.)
Comments
Post a Comment