Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2014 17:44:18 +0100
From:      Enrico Maria Crisostomo <enrico.m.crisostomo@gmail.com>
To:        Mathieu Arnold <mat@FreeBSD.org>
Cc:        freebsd-doc@FreeBSD.org, Matthew Seaman <matthew@freebsd.org>
Subject:   Re: Suggestion about a correction in Porter' HandBook, Chapter 10
Message-ID:  <4B0FBD68-B6F7-4C35-955F-EFCA88C3C6BA@gmail.com>
In-Reply-To: <D05DEAB77A61D8FB2D1338FC@ogg.in.absolight.net>
References:  <C318C257-B660-491E-B9E0-1E8602C5747F@gmail.com> <D05DEAB77A61D8FB2D1338FC@ogg.in.absolight.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_1FE6D088-6D6A-4274-A629-601624F11A78
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi Mathieu,

> On 30 Oct 2014, at 17:30, Mathieu Arnold <mat@FreeBSD.org> wrote:
>=20
>=20
>=20
> +--On 30 octobre 2014 12:50:18 +0100 Enrico Maria Crisostomo
> <enrico.m.crisostomo@gmail.com> wrote:
> | Hi all,
> |=20
> | This morning I was notified by Matthew Seaman about a problem in a =
port I
> | maintain and finally we discovered that `svn diff` does **not** =
output
> | information about files that have "history scheduled with commit": =
that
> | is, files which seem to be new files, but in reality are not.  The
> | typical case is files "added" as a result of a `svn mv` operation.  =
This
> | behaviour led to the problem that affected the port.
> |=20
> | The Porter's Handbook implicitly implies that `svn diff` is =
equivalent to
> | `diff -ruN` but in fact it is not: using `svn diff` may lead to the
> | aforementioned problem.  svn 1.7 added the `--show-copies-as-adds` =
option
> | to the `svn diff` command which forces the expected behaviour.
> | Therefore, I suggest Chapter 10, Section 1, "Using Subversion to =
Make
> | Patches" to be amended in order to describe this behaviour.
>=20
> Unless mistaken, the PHB says that if you move files around, you =
*must* say
> so in the PR you open, so that the developper can replicate the =
commands
> before applying the patch.

Indeed, it says so, and I did said so in the PR, adding the full `svn =
st` output showing what was going on.

>=20
> Because if you add --show-copies-as-adds, the diff will be in such a =
way
> that files will get created without its ancestry taken into account, =
which
> we *do not* want.

Good point, that's the show-stopper.

>=20
> The good thing about Subversion is that it has a way to know that foo =
has
> been copied to bar without having to fiddle around in the repository =
doing
> repo-copies like we used to do with CVS...
>=20
> If the PHB is not clear about that (or I just dreamt I read/wrote that =
bit)
> do tell me, I'll fix it :-)

IMHO it's not that clear, but that may be subject to interpretation.  =
The relevant bits are these:

Chapter 10:

    Please mention any added or deleted files in the message, as they =
have to be explicitly specified to svn(1) when doing a commit.

Chapter 10, Section 10.1:

    While in the port directory, make any changes that are needed. If =
adding, moving, or removing a file, use svn to track these changes:

        % svn add new_file
        % svn move old_name new_name
        % svn remove deleted_file

[...snip...]

    The last step is to make a unified diff(1) of the changes:

        % svn diff > ../`make -VPKGNAME`.diff

    Note:=20
    Any files that have been removed have to be explicitly mentioned in =
the PR, because file removal may not be obvious to the committer.

As you can see, the first citation talks about added and deleted files, =
but in the context of a manual diff.  The second citation, coming from =
the section about Subversion diff, only cites deletions and makes an =
example with the `svn move` command.

In my opinion, we could improve adding the important bits of your =
explanations (citing additions and additions coming from move operations =
and specifying that the committer has to manually perform those =
operations before applying the patch).

In fact, if I followed literally what's written in the PHB to my =
understanding, I'd only cite *deleted* files, and the committer will =
have no information about moved ones (that is what happened to us).

Cheers,
--=20
Enrico

>=20
> Regards,
>=20
> --=20
> Mathieu Arnold


--Apple-Mail=_1FE6D088-6D6A-4274-A629-601624F11A78
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMgTCCBjQw
ggQcoAMCAQICAR4wDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSB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ggLkA8xAxCfC+RPFT5wdCtiTIOsD3o+jMn/6TLxzZez49Dk41
GntdqcXaLEfU8QfO1szJGHxxf64A3ntwOftGcmnfJUsAAAAAAAA=
--Apple-Mail=_1FE6D088-6D6A-4274-A629-601624F11A78--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B0FBD68-B6F7-4C35-955F-EFCA88C3C6BA>