convert: use convert_revision for P4 imports
authorDavid Soria Parra <davidsp@fb.com>
Tue, 13 Dec 2016 21:49:58 -0800
changeset 30600 d584c412c4a4
parent 30599 902c89df94e3
child 30601 d47a01bf0059
convert: use convert_revision for P4 imports We are using convert_revisions in other importers. In order to unify this we are also using convert_revision for Perforce in addition to the original 'p4'.
hgext/convert/p4.py
--- a/hgext/convert/p4.py	Wed Dec 14 01:45:17 2016 -0800
+++ b/hgext/convert/p4.py	Tue Dec 13 21:49:58 2016 -0800
@@ -150,7 +150,7 @@
             c = common.commit(author=self.recode(d["user"]),
                               date=util.datestr(date, '%Y-%m-%d %H:%M:%S %1%2'),
                               parents=parents, desc=desc, branch=None,
-                              extra={"p4": change})
+                              extra={"p4": change, "convert_revision": change})
 
             files = []
             copies = {}