quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] [PATCH] quilt pop: Fix timestamp comparisons


From: sat
Subject: Re: [Quilt-dev] [PATCH] quilt pop: Fix timestamp comparisons
Date: Fri, 23 Nov 2012 06:05:04 +0900

Hi Jean,

On 2012/11/23, at 2:31, Jean Delvare <address@hidden> wrote:

> The timestamps recorded on file systems have a limited resolution.
> For this reason, a patch or file with a timestamp exactly equal to
> .timestamp should be considered as more recent than .timestamp, i.e.
> potentially modified since the last push or refresh. This is
> particularly important for the test suite, as we can do many actions
> in the same second there.

It looks good to me.

Reviewed-by: Satoru Takeuchi <address@hidden>

> ---
> quilt/pop.in |    4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> --- a/quilt/pop.in
> +++ b/quilt/pop.in
> @@ -70,14 +70,14 @@ files_may_have_changed()
> 
>    if [ $? -ne 0 -o ! -e "$patch_file" \
>         -o ! -e "$QUILT_PC/$patch/.timestamp" \
> -         -o "$QUILT_PC/$patch/.timestamp" -ot "$patch_file" ]
> +         -o ! "$QUILT_PC/$patch/.timestamp" -nt "$patch_file" ]
>    then
>        return 0
>    fi
> 
>    for file in $(files_in_patch $patch)
>    do
> -        [ "$QUILT_PC/$patch/.timestamp" -ot $file ] && return 0
> +        [ ! "$QUILT_PC/$patch/.timestamp" -nt $file ] && return 0
>    done
>    return 1
> }
> 
> -- 
> Jean Delvare
> Suse L3
> 
> 
> _______________________________________________
> Quilt-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/quilt-dev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]