Page MenuHomePhabricator

Don't link commit uri in Crumbs
ClosedPublic

Authored by chad on Feb 11 2016, 6:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 1:08 AM
Unknown Object (File)
Wed, Dec 18, 1:08 AM
Unknown Object (File)
Sun, Dec 15, 12:07 PM
Unknown Object (File)
Mon, Dec 2, 7:32 PM
Unknown Object (File)
Wed, Nov 27, 3:15 AM
Unknown Object (File)
Sat, Nov 23, 9:28 AM
Unknown Object (File)
Tue, Nov 19, 1:59 PM
Unknown Object (File)
Nov 14 2024, 4:41 PM
Subscribers

Details

Summary

These are not needed I think? and handy for cut and paste. Fixes T7628

Test Plan

cut and paste easier from commit hash.

Diff Detail

Repository
rP Phabricator
Branch
diffusion-links (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10635
Build 13054: Run Core Tests
Build 13053: arc lint + arc unit

Event Timeline

chad retitled this revision from to Don't link commit uri in Crumbs.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.

One inline. You can also mark this as fixing T7628, probably.

src/applications/diffusion/controller/DiffusionController.php
150

This can be formatCommitName($stable_commit, $local = true) to drop the rX prefix in most cases. It's unambiguous in these UIs.

This revision is now accepted and ready to land.Feb 11 2016, 6:51 PM

That is, adding $local = true should change it from showing rXabcdef to abcdef in Git and Mercurial.

You can still grab the full-context hash out of the URI so I think that's fine, even if we have some users who like copy-pasting full-context URIs.

This revision was automatically updated to reflect the committed changes.