[PATCH] automv: new experimental extension

Augie Fackler raf at durin42.com
Sat Feb 13 18:57:38 EST 2016


> On Feb 13, 2016, at 6:54 PM, Martin von Zweigbergk <martinvonz at google.com> wrote:
> 
> I haven't followed this thread, but  "--config  automv.similarity=1.00" and "hg addremove --similarity=100” seems unfortunate. Is the different "units" wanted?
> 

Valid point. Probably worth standardizing on the integer range since it’s part of addremove already.

> 
> On Sat, Feb 13, 2016, 15:20 Augie Fackler <raf at durin42.com <mailto:raf at durin42.com>> wrote:
> On Mon, Feb 08, 2016 at 01:56:38PM +0000, Martijn Pieters wrote:
> > # HG changeset patch
> > # User Martijn Pieters <mjpieters at fb.com <mailto:mjpieters at fb.com>>
> > # Date 1454939571 0
> > #      Mon Feb 08 13:52:51 2016 +0000
> > # Node ID fb91a65f102ca34d69961142ad84955080ada1fc
> > # Parent  3026a9107f9e40ba5d63bdae7e81c48db8885fe2
> > automv: new experimental extension
> 
> This looks great to me, with one minor nitpick (see below).
> 
> >
> > Automatically detect moves and record them at commit time.
> >
> > This extension was originally developed at
> > https://bitbucket.org/facebook/hg-experimental <https://bitbucket.org/facebook/hg-experimental>
> >
> > diff --git a/hgext/automv.py b/hgext/automv.py
> > new file mode 100644
> > --- /dev/null
> > +++ b/hgext/automv.py
> > @@ -0,0 +1,83 @@
> > +# automv.py
> > +#
> > +# Copyright 2013-2016 Facebook, Inc.
> > +#
> > +# This software may be used and distributed according to the terms of the
> > +# GNU General Public License version 2 or any later version.
> > +"""Check for unrecorded moves at commit time (EXPERIMENTAL)
> > +
> > +This extension checks at commit/amend time if any of the committed files
> > +comes from an unrecorded mv.
> > +
> > +The threshold at which a file is considered a move can be set with the
> > +``automv.similarity`` config option; the default value is 1.00.
> 
> I think we should document this value as being something we reserve
> the right to refine later, after doing some history analysis. I
> suspect we can do some analysis over firefox/facebook/google/whatever
> histories and come up with a better value than 1.0 as a default.
> 
> > +
> > +"""
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org <mailto:Mercurial-devel at mercurial-scm.org>
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel <https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20160213/ca3142cc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20160213/ca3142cc/attachment.sig>


More information about the Mercurial-devel mailing list