monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Hooks


From: Ludovic Brenta
Subject: [Monotone-devel] Hooks
Date: Fri, 10 Oct 2008 16:53:00 +0200
User-agent: Internet Messaging Program (IMP) 3.2.2

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]