Submitter | phabricator |
---|---|
Date | Sept. 9, 2019, 9:21 p.m. |
Message ID | <9016d0d8bbee9005f6911eaee3441f33@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/41601/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -659,7 +659,12 @@ mapping[old.node()] = [newnode] # Update diff property - writediffproperties(unfi[newnode], diffmap[old.node()]) + # If it fails just warn and keep going, otherwise the DREV + # associations will be lost + try: + writediffproperties(unfi[newnode], diffmap[old.node()]) + except util.urlerr.urlerror: + ui.warn(b'Failed to update metadata for D%s\n' % drevid) # Remove local tags since it's no longer necessary tagname = b'D%d' % drevid if tagname in repo.tags():