How to identify the source's revision?

Daniel(原志) dlin.tw at gmail.com
Fri Jun 27 06:12:58 CDT 2008


Case 1: Executable file need to identify which revision
I build an executable file from my source which is version controlled by hg.
I release the executable file, and some one told me there exist a bug.
Unfortunely, I forgot which revision I release.

Is there any method to identify what is the executable file's version?

As I think the only method is:

for every revision in that subdirectory:
     hg up -C <rev>
     make
     # compare the executable file to the just build executable file.


Case 2: source code files need to identify which revision.
I release an archive of source code without revision information(eg. $Id$).
I need to identify which revision.

As I think the method is:

for every revision in that subdirectory:
      hg up -C <rev>
      compare all files with the target source code.


Is there possible provide some simple command of hg to do such thing?
Or, the command already exist?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080627/03769823/attachment.htm 


More information about the Mercurial mailing list