[Top][All Lists]
[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.
- Re: [Monotone-devel] Re: Hooks, (continued)
- Re: [Monotone-devel] Re: Hooks, Daniel Carrera, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Thomas Keller, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Daniel Carrera, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Thomas Keller, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Daniel Carrera, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Thomas Keller, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Daniel Carrera, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Thomas Keller, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Daniel Carrera, 2008/10/10
- Re: [Monotone-devel] Re: Hooks, Thomas Keller, 2008/10/10
[Monotone-devel] Hooks,
Ludovic Brenta <=