--- a/hgext/phabricator.py Mon Aug 24 18:44:15 2020 -0400
+++ b/hgext/phabricator.py Mon Aug 24 18:51:25 2020 -0400
@@ -76,6 +76,7 @@
patch,
phases,
pycompat,
+ rewriteutil,
scmutil,
smartset,
tags,
@@ -1511,6 +1512,9 @@
mapping.get(old.p1().node(), (old.p1(),))[0],
mapping.get(old.p2().node(), (old.p2(),))[0],
]
+ newdesc = rewriteutil.update_hash_refs(
+ repo, newdesc, mapping,
+ )
new = context.metadataonlyctx(
repo,
old,
@@ -1588,7 +1592,9 @@
repo,
old,
parents=parents,
- text=old.description(),
+ text=rewriteutil.update_hash_refs(
+ repo, old.description(), mapping
+ ),
user=old.user(),
date=old.date(),
extra=old.extra(),