Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I did this for years. You are right that it's not well documented.

sage: hg_sage.rollback()

will roll back the previous commit, and

sage: hg_sage.revert(options='--all')

will revert the changes of that one commit. Otherwise you'll have to find out what commit to revert to with hg_sage.log() and do

sage: hg_sage.revert?

to see how to use that command. It says it's not what you're looking for, but it is, in a brutish sense.

You're right that queues are easier in the long run, but there is a definite learning curve. The (eventual, not soon) switch to git probably won't make things any easier, just different.