[KDE/Mac] Review Request 121586: Restore upload functionality to git.reviewboard.kde.org

Nicolai Hähnle nhaehnle at gmail.com
Mon Dec 22 11:54:48 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121586/#review72417
-----------------------------------------------------------


Dear René, thanks for taking care of this! I did notice a small issue while going over your changes, see below.


vcs/vcsdiff.cpp
<https://git.reviewboard.kde.org/r/121586/#comment50474>

    Unlike here, the copy constructor has not been updated to account for the new member variable.
    
    I recommend to change both operator= and the copy constructor to make use of the corresponding operations of VcsDiffPrivate. In other words: the copy operator should just be "... : d(new VcsDiffPrivate(rhs.d) {}", and the operator=:
    
        if (this != &rhs) {
            *d = *rhs.d;
        }
        return *this;



vcs/vcsdiff.cpp
<https://git.reviewboard.kde.org/r/121586/#comment50475>

    If the method stays, I believe that
    
        *d = VcsDiffPrivate();
    
    would be preferable, since it avoids unnecessary heap allocations.


- Nicolai Hähnle


On Dez. 19, 2014, 5:41 nachm., René J.V. Bertin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121586/
> -----------------------------------------------------------
> 
> (Updated Dez. 19, 2014, 5:41 nachm.)
> 
> 
> Review request for KDE Software on Mac OS X and KDevelop.
> 
> 
> Repository: kdevplatform
> 
> 
> Description
> -------
> 
> A change was made on git.reviewboard.kde.org on December 13th a bit before 22h Europe/Paris time, ending support for p0 patch files. This broke the upload functionality in the current/stable version KDevelop's patchreview plugin.
> 
> The patch under review is a workaround (`*`) that restores this functionality by invoking the git helper process which generates the patchfiles with the correct arguments.
> 
> `*`) The real bug is in the reviewboard software, and should be addressed at that level. I work with a software distribution system that requires p0 patches, for which I created patches with KDevelop, something which will now require an additional step.
> 
> 
> Diffs
> -----
> 
>   plugins/git/gitplugin.h e930423 
>   plugins/git/gitplugin.cpp f38dc71 
>   plugins/patchreview/patchreview.cpp 18b63db 
>   plugins/reviewboard/reviewboardjobs.cpp 96cb354 
>   plugins/reviewboard/reviewboardplugin.cpp 1dd3bcb 
>   vcs/vcsdiff.h 573ec1b 
>   vcs/vcsdiff.cpp 01eb73c 
>   vcs/widgets/vcsdiffpatchsources.h 6a2f934 
>   vcs/widgets/vcsdiffpatchsources.cpp c3e2dae 
> 
> Diff: https://git.reviewboard.kde.org/r/121586/diff/
> 
> 
> Testing
> -------
> 
> Under OS X 10.9; this RR has been created from a patched copy of KDevelop 4.7 .
> 
> 
> Thanks,
> 
> René J.V. Bertin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20141222/2ce4d0b9/attachment.html>


More information about the kde-mac mailing list