can't find file with hg -R

Mike Kupfer mike.kupfer at sun.com
Fri Aug 10 15:26:39 CDT 2007


I've managed to create a repo that sometimes tells me it can't find a
file.

athyra$ hg version
Mercurial Distributed SCM (version 0.9.3)

Copyright (C) 2005, 2006 Matt Mackall <mpm at selenic.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# create a copy of the bad repo
athyra$ hg clone hg.bak test-repo
307 files updated, 0 files merged, 0 files removed, 0 files unresolved

# this works:
athyra$ hg -R test-repo cat usr/src/tools/scripts/Makefile > /dev/null

# 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

# despite which, the exit status indicates success.
athyra$ echo $?
0

athyra$ hg -R ../test-repo log
changeset:   1:58d685dcc9d7
tag:         tip
user:        mike.kupfer at sun.com
date:        Sun Aug 05 15:43:32 2007 -0700
summary:     add dummyfile so that revision has > 1 entries

changeset:   0:210110abf53b
user:        mike.kupfer at sun.com
date:        Mon Jul 09 15:50:04 2007 -0700
summary:     baseline

# it knows about the file
athyra$ hg -R ../test-repo manifest | grep usr/src/tools/scripts/Makefile
usr/src/tools/scripts/Makefile

# and this works:
athyra$ (cd ../test-repo; hg cat usr/src/tools/scripts/Makefile > /dev/null)

# could the fact that there's a usr/src/tools/scripts/Makefile under
# $cwd be causing trouble?
athyra$ ls -l usr/src/tools/scripts/Makefile
-rw-r--r--   1 kupfer       2458 Aug  6 16:17 usr/src/tools/scripts/Makefile

Is this a known problem?  Any suggestions for troubleshooting?

thanks,
mike


More information about the Mercurial mailing list