Partial Archive

Dov Feldstern dfeldstern at fastimap.com
Tue Jan 1 16:08:20 CST 2008


Nick Peeples wrote:
> 
> What I need is a way to create an archive of only files changed
> between revisions. This would allow me to push changes to production
> sites, but I don't necessarily want those production sites under the
> same source control as development. I'm thinking that if I could just
> get a list of files changed between two repositories, then I could use
> archive with the -I param, but I'm struggling with that too.
> 

I believe that the extdiff extension does just this --- it creates a 
temporary directory containing two trees, each of which contains only 
the files which have changed between the two given revisions. The 
temporary directory is removed as soon as the external diff command is 
done executing, but if you use some interactive external diff (such as 
kdiff3), then until you close it the temporary directory exists. I 
imagine that it would be quite easy to create a script which you could 
pass to extdiff as the external command, and which would create an 
archive of the temporary directory. On Linux, the temporary directory is 
created in /tmp .

> Does this make sense, something silly to do?
> 
> -Nick

Hope this helps!
Dov



More information about the Mercurial mailing list