shooting in the foot with caret ^ on windows

anatoly techtonik techtonik at gmail.com
Sun Jul 20 10:53:17 UTC 2014


C:\discovery>hg log -r tip^ --style compact
108   6dab298d9851   2014-05-16 21:40 +0300   techtonik
  graphics/pysdl2/demofire.py: 1.5 - Fire Plane (not optimized)

C:\discovery>hg log -r tip^1 --style compact
abort: unknown revision 'tip1'!


The reason for that is that caret ^ is escape character on
windoze. So this command works ok:

C:\discovery>hg log -r tip^^1 --style compact
108   6dab298d9851   2014-05-16 21:40 +0300   techtonik
  graphics/pysdl2/demofire.py: 1.5 - Fire Plane (not optimized)


It would be nice to mention this on
http://www.selenic.com/hg/help/revsets and link to
cross-platform alternative.
-- 
anatoly t.



More information about the Mercurial mailing list