[PATCH] Infer a --repository argument from command arguments when reasonable

Bryan O'Sullivan bos at serpentine.com
Tue Jan 29 21:54:20 CST 2008


Jesse Glick wrote:
> Thomas Arendsen Hein wrote:
>> This might be too much magic.
> 
> Why? Subversion does it and no one seems to complain.

I didn't take a close look at the patch, but I like the idea in
principle.  However, the reason I didn't write something like this long
ago is that the corner cases are fiendish, and nested repositories add
to the fun.  So I have a few questions.

I version control my home directory, so I get results like this right now:

$ hg log hg/hg/hg/hg
abort: path 'hg/hg/hg/hg' is inside repo 'hg/hg/hg'

What does your patch do here?

What happens if I pass in two file names, each in a different
repository?  Here's what svn does:

$ svn log --limit 2 MANIFEST ../chttp/eventlet/tpool.py
svn: When specifying working copy paths, only one target may be given


More information about the Mercurial-devel mailing list