Unintuitive error message for hg log -f if file not found

Thomas Arendsen Hein thomas at intevation.de
Tue Dec 12 18:18:30 UTC 2006


* Colin McMillen <mcmillen at cs.cmu.edu> [20061211 23:07]:
> $ hg log -f idontexist
> abort: can only follow copies/renames for explicit file names
> 
> Without -f, hg log on a non-existent file name just outputs nothing.

> I propose that either:
> 
> 1) no abort message should be printed at all if the file doesn't exist, or
> 2) the error message should be changed to something like "abort: file
> 'idontexist' not found", and this message should be printed whether or
> not -f is specified.

+1 for solution "2".

> I'm willing to make a patch if we can agree on what the proper solution
> should be.

Please do, I was bitten more than once by forgetting the -r option
on hg log, so the revision was interpreted as a file name.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/



More information about the Mercurial mailing list