Select the types of activity you want to include in your feed.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
···139139 $this->pullRepository($repository);
140140141141 if (!$no_discovery) {
142142+ // TODO: It would be nice to discover only if we pulled something,
143143+ // but this isn't totally trivial.
144144+142145 $lock_name = get_class($this).':'.$callsign;
143146 $lock = PhabricatorGlobalLock::newLock($lock_name);
144147 $lock->lock();
145148146146- // TODO: It would be nice to discover only if we pulled something,
147147- // but this isn't totally trivial.
148148- $this->discoverRepository($repository);
149149+ try {
150150+ $this->discoverRepository($repository);
151151+ } catch (Exception $ex) {
152152+ $lock->unlock();
153153+ throw $ex;
154154+ }
149155150156 $lock->unlock();
151157 }