Page MenuHomePhorge

Subversion: fix empty "Authored on" date on commit pages
ClosedPublic

Authored by valerio.bozzolan on Aug 21 2024, 13:33.
Tags
None
Referenced Files
F2948273: D25796.1738541955.diff
Sun, Feb 2, 00:19
F2926878: D25796.1737642522.diff
Wed, Jan 22, 14:28
F2926877: D25796.1737642522.diff
Wed, Jan 22, 14:28
F2926867: D25796.1737642126.diff
Wed, Jan 22, 14:22
F2926862: D25796.1737641995.diff
Wed, Jan 22, 14:19
F2871128: D25796.1736838245.diff
Mon, Jan 13, 07:04
F2870070: D25796.1736767832.diff
Sun, Jan 12, 11:30
F2866963: D25796.1736639050.diff
Fri, Jan 10, 23:44

Details

Summary

Subversion does not allow to have local commits. So, manage this case.

Closes T15612

Test Plan

Surf a git commit: nothing changed.

Surf a svn commit: the "Authored on" date is not empty anymore.

Diff Detail

Repository
rP Phorge
Branch
T15612
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1553
Build 1553: arc lint + arc unit

Event Timeline

aklapper subscribed.

As usual I'm confused about the PHP magic which does not require defining the method PhabricatorRepositoryCommit::getEpoch() in its class or parent classes, but I assume you tested locally that your patch works, plus PhabricatorRepositoryCommit does have some calls already to $this->getEpoch(), so I'll accept - worst case would be the very same behavior as now.

This revision is now accepted and ready to land.Aug 23 2024, 18:31

Thanks. Premising that I also don't like projects with "automagic getters" so I agree with you; here how every getter works in Phabricator/Phorge:

Note that Lisk automatically builds getters and setters for all of your object's protected properties via __call(). If you want to add custom behavior to your getters or setters, you can do so by overriding the readField() and writeField() methods.
https://we.phorge.it/book/dev/class/LiskDAO/