[PATCH 4 of 8 v4] convert: use convert_revision for P4 imports

David Soria Parra davidsp at fb.com
Wed Dec 14 04:46:40 EST 2016


# HG changeset patch
# User David Soria Parra <davidsp at fb.com>
# Date 1481694598 28800
#      Tue Dec 13 21:49:58 2016 -0800
# Node ID 92b0ad25b4aca99c74d3813ddae163324c1110a7
# Parent  34621390d72ed1e23f30e6c8d0233d46e9d40ef2
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'.

diff --git a/hgext/convert/p4.py b/hgext/convert/p4.py
--- a/hgext/convert/p4.py
+++ b/hgext/convert/p4.py
@@ -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 = {}


More information about the Mercurial-devel mailing list