convert extension: filemap vs filesize

Matt Mackall mpm at selenic.com
Fri Oct 15 17:44:34 CDT 2010


On Fri, 2010-10-15 at 13:57 +0200, Mads Kiilerich wrote:
> On 10/15/2010 01:39 PM, Christian Olrog wrote:
> > This could be a good start - The issue for me is that I would have to do the command for all changesets to enable clearing of files not present in latest changeset.
> >
> > At least for convertees from e.g. svn where the policy has been to include everything this can be a rather big issue.
> >
> > I just glanced at filemap - if there is an easy way to get the size of the file it should be fairly simple fix.
> 
> What should happen if a file starts out small and suddenly grows over 
> the limit?
> 
> How will you and the future users of the repo keep track of and now 
> which file revisions has been left out because it was over the limit?
> 
> But if it works for you then go ahead ;-)

At some point, it'd be nice to have a way to write plug-in convert
filters. People's needs for fiddling with things at convert time will
always outstrip our ability to provide options, giving them an easy way
to hack their own filter would go a long way.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list