D7056: phabricator: include bookmark in diff metadata
Kwan (Ian Moody)
phabricator at mercurial-scm.org
Sat Oct 12 13:46:15 UTC 2019
Kwan added a comment.
Kwan updated this revision to Diff 17106.
I'd missed out the attrs key conversion needed on py3.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7056?vs=17086&id=17106
BRANCH
creatediff (bookmark) on default (branch)
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7056/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7056
AFFECTED FILES
hgext/phabricator.py
CHANGE DETAILS
diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -830,9 +830,11 @@
repo = ctx.repo()
repophid = getrepophid(repo)
# Create a "Differential Diff" via "differential.creatediff" API
+ bookmark = ctx.bookmarks()[0] if ctx.bookmarks() else None
pdiff = phabdiff(
sourceControlBaseRevision=b'%s' % ctx.p1().hex(),
branch=b'%s' % ctx.branch(),
+ bookmark=bookmark,
)
modified, added, removed, _d, _u, _i, _c = ctx.p1().status(ctx)
# addadded will remove moved files from removed, so addremoved won't get
To: Kwan, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list