Patchwork [2,of,3] amend: explicitly test -d option

login
register
mail settings
Submitter Greg Ward
Date June 6, 2014, 1:33 a.m.
Message ID <a3332548e7fb4c18815e.1402018439@queequeg.renesys.com>
Download mbox | patch
Permalink /patch/4942/
State Not Applicable
Headers show

Comments

Greg Ward - June 6, 2014, 1:33 a.m.
# HG changeset patch
# User Greg Ward <greg@gerg.ca>
# Date 1402018048 14400
#      Thu Jun 05 21:27:28 2014 -0400
# Node ID a3332548e7fb4c18815ecaf1b608f320b6f6d1f2
# Parent  b3c700f75ac23420373129501bef302a3b687fcb
amend: explicitly test -d option
Pierre-Yves David - June 6, 2014, 2:07 a.m.
On 06/05/2014 06:33 PM, Greg Ward wrote:
> # HG changeset patch
> # User Greg Ward <greg@gerg.ca>
> # Date 1402018048 14400
> #      Thu Jun 05 21:27:28 2014 -0400
> # Node ID a3332548e7fb4c18815ecaf1b608f320b6f6d1f2
> # Parent  b3c700f75ac23420373129501bef302a3b687fcb
> amend: explicitly test -d option

thsoe two are pushed to bitbucket

(queued)

>
> diff --git a/tests/test-amend.t b/tests/test-amend.t
> --- a/tests/test-amend.t
> +++ b/tests/test-amend.t
> @@ -78,4 +78,8 @@
>     |
>     o  2@foo(draft) adda
>
> +Specify precise commit date with -d
> +  $ hg amend -d '2001-02-03 04:05:06 +0700'
> +  $ hg parents --template '{rev}  {date|date}\n'
> +  5  Sat Feb 03 04:05:06 2001 +0700
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>

Patch

diff --git a/tests/test-amend.t b/tests/test-amend.t
--- a/tests/test-amend.t
+++ b/tests/test-amend.t
@@ -78,4 +78,8 @@ 
   |
   o  2@foo(draft) adda
   
+Specify precise commit date with -d
+  $ hg amend -d '2001-02-03 04:05:06 +0700'
+  $ hg parents --template '{rev}  {date|date}\n'
+  5  Sat Feb 03 04:05:06 2001 +0700