This would be very cool indeed! It will also soon be feasible thanks to tags. Tags are already implemented, but I’ve stopped working on Pijul temporarily until I get a fully resilient nest.pijul.com (the previous one burned in the OVH fire in Strasbourg).
FWIW, it’s called hg cat
in Mercurial. I’d prefer calling it a pijul cat
, but that’s not too terribly important, as long as it’s a simple (one word) command.
cat
is short for concatenate IIRC. That is a poor name for what that command actually does IMHO.
hg cat file1 file2
concatenates the two files into the standard output, so I think it’s rather fitting (since it behaves like cat
does), but the name I’m not too hung up on. :)
I don’t know how hard is to implement this, but it would be nice to have a command which shows the state of a file in a given “revision”, something like the
darcs show content -h [hash]
command does.This will help IDE plugins to get a step closer to what we already have for
Mercurial
andSubversion
.