D5554: histedit: added rewrite.update-timestamp to fold and mess

Yuya Nishihara yuya at tcha.org
Sun Jan 13 07:08:44 EST 2019


Queued with minor modifications, thanks.

> --- a/tests/test-histedit-fold.t
> +++ b/tests/test-histedit-fold.t
> @@ -15,6 +15,7 @@
>    > logt = log --template '{rev}:{node|short} {desc|firstline}\n'
>    > [extensions]
>    > histedit=
> +  > mockmakedate = $TESTDIR/mockmakedate.py
>    > EOF
>  

Inserted `cd ..`

> +-==========================================
> +Test update-timestamp config option|
> +==========================================
> +  $ addwithdate ()
> +  > {
> +  >     echo $1 > $1
> +  >     hg add $1
> +  >     hg ci -m $1 -d "$2 0"
> +  > }
> +
> +  $ initrepo ()
> +  > {
> +  >     hg init r
> +  >     cd r

and renamed `r` to `r2` to get around name conflicts.

> +++ b/tests/mockmakedate.py
> @@ -0,0 +1,19 @@
> +from __future__ import absolute_import
> +
> +# mock out util.makedate() to supply testable values
> +import os
> +from mercurial import pycompat, util
> +from mercurial.utils import dateutil

Removed unused import of `util`.


More information about the Mercurial-devel mailing list