[Phabricator] track Mercurial bookmarks for differential diffs

Summary:
This adds all the changes necessary to track the active Mercurial
bookmark for differential diffs.  We render both branch and bookmark
information in the branch field of the Differential revison view, as
seen in
https://secure.phabricator.com/file/data/kzpmu3evfkukxdjyxrfz/PHID-FILE-eqorsqupxvwirqi2s5lo/bookmark_differential.jpg

The Arcanist half of this is https://secure.phabricator.com/D2896

Test Plan:
Mostly D2896.

Additionally, loaded a diff created with a bookmark, as per the link in the summary.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1331

Differential Revision: https://secure.phabricator.com/D2897
This commit is contained in:
dschleimer
2012-06-30 14:45:30 -07:00
parent f666c3d559
commit 86fa4fd97f
5 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
ALTER TABLE `{$NAMESPACE}_differential`.`differential_diff`
ADD `bookmark` VARCHAR(255) COLLATE utf8_general_ci DEFAULT NULL
AFTER `branch`;