How to stop tracking a file without deleting the file
Hans Meine
meine at informatik.uni-hamburg.de
Wed Jun 18 04:37:56 CDT 2008
Am Mittwoch, 18. Juni 2008 00:56:32 schrieb David Frey:
> -A == --after
> -f == --force
>
> "after" is a way to tell Mercurial to stop tracking the files that I
> have already removed from disk.
..which is obviously not what you want to do..
> "force" is a way of saying remove the file even if the file has been
> added, but not committed or is modified.
..which also does not sound like it was what we want here, plus I would not
expect a --force option (which I am very careful with in general) to be what
the OP wants, i.e. to tell hg *not* to delete the file.
So I agree very much that this is unintuitive.
> Somehow combining the two options means stop tracking this file, but do
> not delete it from disk. I would prefer to see this functionality in
> its own option.
+1
> Something like --keep-file might be appropriate.
>
> The --keep-file and --after options could not be specified together as
> they conflict with each other.
Sounds like a nice UI improvement. You should (be able to) shorten the docs
then, too (the currently displayed table completely specifies hg's behaviour,
but not very human-friendly IMO).
--
Ciao, / /
/--/
/ / ANS
More information about the Mercurial
mailing list