sapling/hgext3rd/p4fastimport
Zhihui Huang 5e0994a87f p4fastimport: handle keyword extension
Summary:
Perforce has a feature called [[ http://answers.perforce.com/articles/KB/3482 | keyword expansion ]].

When a file is marked +k or +ko and you have a string like $Id$, it get's expanded to $Id: SOMETHING$ on Perforce. When importing a file like this from Perforce into Mercurial we need to do the reverse, renaming $Id: SOMETHING$ to $Id$ (and equivalent for all other expansion types).


Test Plan:
$ cd ~/facebook-hg-rpms/fb-hgext/tests/
$ python ../../hg-crew/tests/run-tests.py test-p4fastimport-import.t
$ python ../../hg-crew/tests/run-tests.py test-p4*

Reviewers: #idi, davidsp

Reviewed By: davidsp

Subscribers: davidsp

Differential Revision: https://phabricator.intern.facebook.com/D5266323

Tasks: 19211063

Signature: t1:5266323:1497890444:a1cced5faa5e48c708c2721510952ca4d27d1bd4
2017-06-19 11:54:10 -07:00
..
__init__.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
filetransaction.py p4fastimport: implement transaction.find and .replace 2017-06-06 19:54:29 -07:00
importer.py p4fastimport: handle keyword extension 2017-06-19 11:54:10 -07:00
p4.py p4fastimport: handle keyword extension 2017-06-19 11:54:10 -07:00
util.py p4fastimport: move p4fastimport under hgext3rd 2017-05-12 17:03:20 -07:00