1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 03:32:42 +01:00
phorge-phorge/src/infrastructure/markup
epriestley be235301d0 When commits have a "rewritten" hint, try to show that in handles in other applications
Summary:
Ref T11522. This tries to reduce the cost of rewriting a repository by making handles smarter about rewritten commits.

When a handle references an unreachable commit, try to load a rewrite hint for the commit. If we find one, change the handle name to "OldHash > NewHash" to provide a strong hint that the commit was rewritten and that copy/pasting the old hash (say, to the CLI) won't work.

I think this notation isn't totally self-evident, but users can click it to see the big error message on the page, and it's at least obvious that something weird is going on, which I think is the important part.

Some possible future work:

  - Not sure this ("Recycling Symbol") is the best symbol? Seems sort of reasonable but mabye there's a better one.
  - Putting this information directly on the hovercard could help explain what this means.

Test Plan: {F1780719}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11522

Differential Revision: https://secure.phabricator.com/D16437
2016-08-24 09:35:19 -07:00
..
interpreter Put cows and figlet bannners in <pre> in HTML mail bodies 2015-10-08 20:03:15 -07:00
rule When commits have a "rewritten" hint, try to show that in handles in other applications 2016-08-24 09:35:19 -07:00
view Improve some Phame custom domain remarkup and link behaviors 2016-06-02 06:28:06 -07:00
PhabricatorMarkupEngine.php Fix parsing of anchors in Phriction document link syntax 2016-06-08 13:14:33 -07:00
PhabricatorMarkupInterface.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhabricatorMarkupOneOff.php Fix weird remarkup linewrapping on a few instructions forms, plus move toward fixing Phame/CORGI remarkup issues 2016-05-22 12:23:05 -07:00
PhabricatorMarkupPreviewController.php Disable caching of remarkup previews 2015-02-22 05:39:25 -08:00
PhabricatorSyntaxHighlighter.php Extend from Phobject 2015-06-15 18:02:27 +10:00