# HG changeset patch
# User David Soria Parra <davi...@fb.com>
# Date 1480895549 28800
#      Sun Dec 04 15:52:29 2016 -0800
# Node ID 1f9a627a126694d67f3664dae387d8b98fa44ddb
# Parent  48bf03a8f718f870256f79cbdf10550ca92c7f25
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
@@ -151,7 +151,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 = {}
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to