Mercurial > hg
comparison tests/test-import.t @ 27054:fe458d078ed7
test-import: don't use printf to append an extension to $HGRCPATH
The extension was failing to load on Windows because $TESTTMP contains a path
component 'test', prefixed by a path separator '\'. That combination ends up
converted to "...<tab>est...".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 16 Nov 2015 14:12:27 -0500 |
parents | 520defbc0335 |
children | 6a98f9408a50 |
comparison
equal
deleted
inserted
replaced
27053:c858945f6969 | 27054:fe458d078ed7 |
---|---|
1733 > mercurial.cmdutil.extrapreimport.append('foo') | 1733 > mercurial.cmdutil.extrapreimport.append('foo') |
1734 > mercurial.cmdutil.extrapreimportmap['foo'] = processfoo | 1734 > mercurial.cmdutil.extrapreimportmap['foo'] = processfoo |
1735 > mercurial.cmdutil.extrapostimport.append('foo') | 1735 > mercurial.cmdutil.extrapostimport.append('foo') |
1736 > mercurial.cmdutil.extrapostimportmap['foo'] = postimport | 1736 > mercurial.cmdutil.extrapostimportmap['foo'] = postimport |
1737 > EOF | 1737 > EOF |
1738 $ printf "[extensions]\nparseextra=$TESTTMP/parseextra.py" >> $HGRCPATH | 1738 $ cat >> $HGRCPATH <<EOF |
1739 > [extensions] | |
1740 > parseextra=$TESTTMP/parseextra.py | |
1741 > EOF | |
1739 $ hg up -C tip | 1742 $ hg up -C tip |
1740 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1743 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1741 $ cat > $TESTTMP/foo.patch <<EOF | 1744 $ cat > $TESTTMP/foo.patch <<EOF |
1742 > # HG changeset patch | 1745 > # HG changeset patch |
1743 > # User Rataxes | 1746 > # User Rataxes |