@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
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show diffs of removed and propchanged files in Mercurial correctly

Summary:
By default, `hg log -- x` does not show commits which remove the file `x`, nor commits which only change properties on `x`. By passing the flag `--removed`, commits which remove or just change properties are shown. We expect these commits to be shown in callers (this is the default behavior in Git).

Fixes T2608.

Test Plan: Created commits which remove a file and change properties on a file. Verified `hg log --removed -- x` reported them correctly, and Diffusion showed them correctly.

Reviewers: btrahan, DurhamGoode

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2608

Differential Revision: https://secure.phabricator.com/D5656

+1 -1
+1 -1
src/applications/diffusion/query/lastmodified/DiffusionMercurialLastModifiedQuery.php
··· 10 10 $path = $drequest->getPath(); 11 11 12 12 list($hash) = $repository->execxLocalCommand( 13 - 'log --template %s --limit 1 --rev %s -- %s', 13 + 'log --template %s --limit 1 --removed --rev %s -- %s', 14 14 '{node}', 15 15 hgsprintf('reverse(%s::%s)', '0', $drequest->getCommit()), 16 16 nonempty(ltrim($path, '/'), '.'));