Skip to content

Instantly share code, notes, and snippets.

@fmitha
Created July 29, 2024 16:52
Show Gist options
  • Save fmitha/129888a702ef74c7850b6e3d55d2ce64 to your computer and use it in GitHub Desktop.
Save fmitha/129888a702ef74c7850b6e3d55d2ce64 to your computer and use it in GitHub Desktop.
rm -rf amend+log
hg init amend+log
cd amend+log
echo "First line of foo" >> foo
hg add foo; hg ci -m "Add foo"
hg topics mytopic
echo "First line of bar" >> bar
hg add bar; hg ci -m "Add bar"
echo "Second line of bar" >> bar
hg amend -m "Second line of bar"
echo "Third line of bar" >> bar
hg amend -m "Third line of bar"
echo "Second line of foo" >> foo
hg amend -m "Second line of foo"
hg --hidden log -T status -vp
cd ..
rm -rf amend+log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment