purge - Mercurial: how to revert changes purging files except those ignored (covered by '.hgignore')? -
i made exploratory changes code in project under mercurial version control, afterwards wanted discard changes , go last version in remote repo.
hg pull hg update -r default -c hg --config "extensions.purge=" purge --all what didn't realize delete untracked file, including ignored. in particular eclipse directories .settings. don't want delete those.
i know can use patterns purge command, , of time want use changes under source code directory, if had made changes not under src, config, added file @ project directory level , whatnot, there way purge automatically pull files , directories .hgignore file excluded don't have think directories , files in have untracked files?
well... explicitly used flag means "delete everything, if ignored". hg purge:
--all purge ignored files so should work, if skip '--all' parameter purge.
Comments
Post a Comment