Commit Graph

11 Commits

Author SHA1 Message Date
Pierre-Yves David
6b8771d327 configitems: register the 'automv.similarity' config
Default value has been ported.
2017-06-30 03:27:24 +02:00
Jun Wu
0ac1f68fc3 automv: use lowercase for docstring title
The first line of docstring is used in `hg help -e`. Use lowercase to be
consistent with most extensions.
2017-03-23 21:15:39 -07:00
Yuya Nishihara
a5c934df3c py3: move up symbol imports to enforce import-checker rules
Since (b) is banned, we should do the same for (a) for consistency.

 a) from mercurial import hg
    from mercurial.i18n import _

 b) from . import hg
    from .i18n import _
2016-05-14 14:03:12 +09:00
Martijn Pieters
e5e2edc668 automv: use 95 as the default similarity threshold
The motivation for the change from 100 to 95 is included in a comment.

* Updated the tests to include a change to a moved file that still should be
  caught as a move.

* Use ui.configint() to non-integer configuration entries more gracefully. Also
  complain if a similarity outside of the acceptable range is set.
2016-02-16 15:58:32 +00:00
Martijn Pieters
4dd3a04b71 automv: switch to specifying the similarity as an integer (0-100)
This is consistent with the addremove --similarity option.
2016-02-15 17:24:42 +00:00
Martijn Pieters
81fb7c878b automv: do not release lock between marking files and the actual commit 2016-02-15 17:16:07 +00:00
Martijn Pieters
e49ba6cb7c automv: reuse existing scutil._markchanges() function 2016-02-15 17:13:18 +00:00
Martijn Pieters
3e662b50fe automv: improve function docstrings 2016-02-15 17:01:33 +00:00
Martijn Pieters
9f4bfd63cd automv: remove test for 'developer mode'
The tests no longer use this mode, the test is entirely redundant.
2016-02-15 16:51:31 +00:00
Martijn Pieters
58c369c4ac automv: simplify retrieving the status
The default is to show the status in the current working copy, no need to pass
in the parent and working copy context here.
2016-02-15 16:40:06 +00:00
Martijn Pieters
4b490ea150 automv: new experimental extension
Automatically detect moves and record them at commit time.

This extension was originally developed at
https://bitbucket.org/facebook/hg-experimental
2016-02-08 13:52:51 +00:00