Mercurial > hg-stable
changeset 16328:d388c3fc8319
record: fix up test issues
sed on BSD requires an arg to -i
sed failing exposed an uninitialized variable issue
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 31 Mar 2012 14:04:39 -0500 |
parents | b95b006e18cc |
children | b3fefbb95aad |
files | hgext/record.py tests/test-record.t |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/record.py Sat Mar 31 11:19:09 2012 -0500 +++ b/hgext/record.py Sat Mar 31 14:04:39 2012 -0500 @@ -324,6 +324,7 @@ """) (patchfd, patchfn) = tempfile.mkstemp(prefix="hg-editor-", suffix=".diff", text=True) + ncpatchfp = None try: # Write the initial patch f = os.fdopen(patchfd, "w")
--- a/tests/test-record.t Sat Mar 31 11:19:09 2012 -0500 +++ b/tests/test-record.t Sat Mar 31 14:04:39 2012 -0500 @@ -919,7 +919,7 @@ $ cat > editor << '__EOF__' > #!/bin/sh - > sed -i -e 7d -e '5s/^-/ /' "$1" + > sed -i.bak -e 7d -e '5s/^-/ /' "$1" > __EOF__ $ chmod +x editor $ cat > editedfile << '__EOF__'