monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] mtn automate get_current_revision_id - bug or featu


From: Nuno Lucas
Subject: Re: [Monotone-devel] mtn automate get_current_revision_id - bug or feature?
Date: Thu, 20 Sep 2007 16:35:31 +0100

On 9/20/07, Richard Levitte <address@hidden> wrote:
> In message <address@hidden> on Thu, 20 Sep 2007 15:42:42 +0200, Thomas Keller 
> <address@hidden> said:
> me> So, the only way (currently) to determine if the current workspace
> me> has changes or not, is to look at the output of mtn au
> me> get_revision. If this contains a dummy new_manifest stanza, then
> me> you're good to go.
>
> As my output showed, this is false.
>
> However, if that's good enough, you can use 'mtn list changed' and see
> if it outputs any lines.

Yes, this might work.

I can have a script that gets the base_revision_id and then only get
current_revision_id if the result of mtn ls changed is not empty, else
uses the earlier revision id (which shows there were no changes).

Going to try it. Thanks to both of you!


Regards,
~Nuno Lucas

>
> Cheers,
> Richard
>
> -----
> Please consider sponsoring my work on free software.
> See http://www.free.lp.se/sponsoring.html for details.
>
> --
> Richard Levitte                         address@hidden
>                                         http://richard.levitte.org/
>
> "When I became a man I put away childish things, including
>  the fear of childishness and the desire to be very grown up."
>                                                 -- C.S. Lewis
>
>
> _______________________________________________
> Monotone-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/monotone-devel
>




reply via email to

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