Suggestion: commands allow for path specification

Julian Yap julian_yap at yahoo.com
Wed Aug 3 22:26:24 CDT 2005


Hi all, 

I've been using Mercurial for the past day or so.  I ran through the
tutorial, tested out the HTTP server script and I've had a brief look
through the code.

I have a suggestion.  For example with commands like 'hg update', they
should allow for specification of paths so that change directory
commands are not required.  That is, you shouldn't need to be in the
repository directory to run commands.

Currently:
cd my_clone_path
hg update

Suggested:
hg update my_clone_path

This is relevant for many commands I feel such as revert, log, status...

I'm comparing here my experience with Subversion and Mercurial.

Also, other commands such as 'cat' should work similarly where if a full
file target is specified, the command should work in any directory.

Eg. 
Under Subversion:
svn cat my_repository/file
 --> Works.

Under Mercurial:
hg cat my_repository/file
 --> Doesn't work.

As an experiment, try comparing the outputs of the commands 'svn help
cat' and 'hg help cat'.

As I said, I'm taking a look and may submit some patchs once I
understand the code better.

Later,

Julian Yap



More information about the Mercurial mailing list