Command line length limitation

Sergey Antonov sergant_ at mail.ru
Mon Jan 3 05:38:39 CST 2011


I'm working on mercurial plugin for MS Visual Studio and I use mercurial 
command line client (hg.exe) to invoke mercurial commands.

There is a limitation for a maximum command line length (about 2080 
characters) in the .Net API, which I use to run external process with 
mercurial.

For the most commands (add, remove, status, resolve, etc) I have a 
workaround for a command line limit. If the resulting command line 
length is longer than limit, then I split the files to smaller groups 
and run the command several times.

But, I can not do this for commit command, because it must be atomic.
The problem is when the user have a lot of changed files (or a deep 
hierarchy in repository) and wants to commit only part of them.

Is it possible to address this issue in mercurial ?
For example, add a possibility to specify file names in a text file, 
where each line contains a file name.

-- 
Sergey Antonov
sergant_ at mail.ru


More information about the Mercurial mailing list