about hg cat

Ling, Xiaofeng xiaofeng.ling at intel.com
Sun Aug 21 23:51:26 CDT 2005

Matt Mackall <mailto:mpm at selenic.com> wrote:
> On Mon, Aug 22, 2005 at 11:06:29AM +0800, Xiaofeng Ling wrote:
>> hg cat [-o OUTFILE] FILE [REV]
>> Seems here REV is not the changeset id, but the file id, how can I
>> get the file id from changeset id?
>> currently, I can only get that by wc -l.
> As of the latest release (0.6c), it will take changeset hashes
> instead. 
Yes, it works now.
but seems hg log -r <REVID> still use a file rev number

> But to answer your question, you can do 'hg manifest <changeset>' and
> get a list of file hashes associated with a given changeset. 
yes, it's better if I can get a number id.

More information about the Mercurial mailing list