can't find file with hg -R
Thomas Arendsen Hein
thomas at intevation.de
Sat Aug 11 03:50:19 CDT 2007
* Mike Kupfer <mike.kupfer at sun.com> [20070810 22:43]:
> Mercurial Distributed SCM (version 0.9.3)
Your problems have been fixed in 0.9.4:
> # this works:
> athyra$ hg -R test-repo cat usr/src/tools/scripts/Makefile > /dev/null
Now this works:
hg cat -R test-repo test-repo/usr/src/tools/scripts/Makefile
Alternatively (should work in 0.9.3, too):
hg cat --cwd test-repo usr/src/tools/scripts/Makefile
> # but this doesn't:
> athyra$ cd no-sccs-tools
> athyra$ hg -R ../test-repo cat usr/src/tools/scripts/Makefile > /dev/null
> usr/src/tools/scripts/Makefile: No such file in rev 58d685dcc9d7
Now this works:
hg cat -R ../test-repo ../test-repo/usr/src/tools/scripts/Makefile
Alternatively (should work in 0.9.3, too):
hg cat --cwd ../test-repo usr/src/tools/scripts/Makefile
> # despite which, the exit status indicates success.
> athyra$ echo $?
> 0
Fixed, too:
changeset: 4697:5b2d986de0f8
user: Matt Mackall <mpm at selenic.com>
date: Sun Jun 24 09:47:54 2007 -0500
summary: cat: return an error on failure
(Returns 255 ... generally the return code handling should still be
improved)
Regards,
Thomas
--
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
More information about the Mercurial
mailing list