Tracking base revision for files distributed without a repo

Steve Barnes gadgetsteve at hotmail.com
Fri Jan 24 06:49:32 UTC 2014


On 23/01/14 15:11, Koen Vermeer wrote:
> On 23/01/2014 07:01, Steve Barnes wrote:
>> I personally would use a little python distribute script to add a
>> comment that includes the revision ID in each file as a comment as it
>> zips the files.  If use os.walk and zip you can easily do this. Let me
>> know if you would like a draft of something along those lines.
>
> I'd be interested in that. I have been thinking about this problem as 
> well, so I'd like to learn about what other people came up with.
>
> Best,
> Koen
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>
I was thinking of something along the lines of getting the information 
on the current directory, then using and os.walk skipping directories 
that start with a . and appending the info, formatted as a comment 
correctly for the file typefor that I had a comment format specified, or 
substituting a marker to each file. Then adding the file to the zip 
using ziplib.  Finally I would revert the file/repo.

But now I am wondering if it might not be better to try and modify the 
expand-keywords extension to get an archive-with-have-expanded extension.

Gadget/Steve




More information about the Mercurial mailing list