[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] ikiwiki and monotone
From: |
Václav Haisman |
Subject: |
Re: [Monotone-devel] ikiwiki and monotone |
Date: |
Wed, 11 Oct 2006 15:21:43 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (Windows/20060909) |
Brian May wrote, On 11.10.2006 4:36:
>>>>>> "Brian" == Brian May <address@hidden> writes:
>
> Brian> Hello, Anyone considered adding monotone support to
> Brian> ikiwiki?
>
> Brian> http://ikiwiki.kitenet.net/
>
> No response?
>
> Nobody interested?
>
> In case I am wrong, I did see this post:
>
> http://lists.gnu.org/archive/html/monotone-devel/2006-02/msg00145.html
>
> Brian> * How do you determine the creation date/time of a file? Or
> Brian> the data/time of the first revision would probably be
> Brian> sufficient too.
>
> Is there a better way?
>
> 1. base_id = `mtn automate get_base_revision_id`
> 2. output= `mtn get_roster $base_id`
> 3. birth_id= `scan $output for birth revision id for $file`
> 4. output= `mtn automate certs $birth_id`
> 5. scan output for date certificates.
> 6. decide what to do if multiple date certificates appear.
>
> Steps 3 and 5 appear non-trivial and inefficient.
>
> Maybe if I could replace the above with the following steps :
>
> 1. base_id = `mtn automate get_base_revision_id`
> 2. birth_id= `mtn get_roster $base_id $file birth`
> 3. date=`mtn automate certs $birth_id date | head 1`
>
> (I note mtn automate certs returns a signature "ok" field - does this
> mean it will list signatures that are not OK?)
>
> Or is there a better way?
Just a thought, can't you exploit mtn attr set/get for that? Give a file an
attribute birth-date when you add it first time to the repo?
And taking this thought further, maybe monotone should attach this attribute,
and maybe more than just this one, to a file automatically when the file is
added to the repository.
--
VH
signature.asc
Description: OpenPGP digital signature
- [Monotone-devel] Re: ikiwiki and monotone, (continued)
Re: [Monotone-devel] ikiwiki and monotone, Nathaniel Smith, 2006/10/11
Re: [Monotone-devel] ikiwiki and monotone, Daniel Carosone, 2006/10/11
Re: [Monotone-devel] ikiwiki and monotone, Nathaniel Smith, 2006/10/11
Re: [Monotone-devel] ikiwiki and monotone, Brian May, 2006/10/12
Re: [Monotone-devel] ikiwiki and monotone,
Václav Haisman <=