Selon Daniel Carrera:
> Is it possible to write a hook that implements Ludovic's solution to
> the "undo a commit" problem? :

I'm not very comfortable with lua either and my first move was to write a
shell script along the lines of:

#!/bin/sh
head=$(mtn automate get_base_workspace_revision)
parent=$(mtn automate select p:$head)
sed -i -r 's,old_revision \[.*\],old_revision [$parent],' _MTN/revision

but this approach fails as soon as the head has more than one parent.
That's why, until now, I stuck to the manual way.

-- 
Ludovic Brenta.


_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to