# Check that we can check out a previous version.
I prelude1.inc
+ wug.txt wug.txt
> add wug.txt
<<<
> commit "version 1 of wug.txt"
<<<
+ wug.txt notwug.txt
> add wug.txt
<<<
> commit "version 2 of wug.txt"
<<<
= wug.txt notwug.txt
# Each ${HEADER} captures its commit UID.
D UID "[a-f0-9]+"
D HEADER "commit (${UID})"
D DATE "Date: \w\w\w \w\w\w \d+ \d\d:\d\d:\d\d \d\d\d\d [-+]\d\d\d\d"
> log
===
${HEADER}
${DATE}
version 2 of wug.txt
===
${HEADER}
${DATE}
version 1 of wug.txt
===
${HEADER}
${DATE}
initial commit
<<<*
# UID of second version
D UID2 "${1}"
# UID of current version
D UID1 "${2}"
> checkout ${UID1} -- wug.txt
<<<
> status
=== Branches ===
\*master
=== Staged Files ===
=== Removed Files ===
=== Modifications Not Staged For Commit ===
(${ARBLINE}\n\r?)?
=== Untracked Files ===
<<<*