interoperating with git

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

interoperating with git

Hendrik Boom-2
Planning to use monotone together with git.  Monotone for day-to-day
activity, because it's a system I understand and trust.  Git for posting
working versions on github or gitlab or some such.

The obvious way to do this is to have one workspace that is used with
both git and monotone.  git will be tld to ignore _MTN; monotone will be
told to ignore .git .

And. of course, similar treatment with other control files, such as the
one that tells monotone to ignore .git.

Does this seem like a reasonable approach?
Is there something I've overlooked?
Is there a better approach?
Is there some new feature I should be looking at instead?

-- hendrik

_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Reply | Threaded
Open this post in threaded view
|

Re: interoperating with git

CooSoft Support
On 23/10/2018 14:40, Hendrik Boom wrote:

> Planning to use monotone together with git.  Monotone for day-to-day
> activity, because it's a system I understand and trust.  Git for posting
> working versions on github or gitlab or some such.
>
> The obvious way to do this is to have one workspace that is used with
> both git and monotone.  git will be tld to ignore _MTN; monotone will be
> told to ignore .git .
>
> And. of course, similar treatment with other control files, such as the
> one that tells monotone to ignore .git.
>
> Does this seem like a reasonable approach?
> Is there something I've overlooked?
> Is there a better approach?
> Is there some new feature I should be looking at instead?
>
> -- hendrik
>
> _______________________________________________
> Monotone-devel mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/monotone-devel



_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Reply | Threaded
Open this post in threaded view
|

Re: interoperating with git

CooSoft Support
In reply to this post by Hendrik Boom-2
I can't see why this wouldn't work. Give it a try. The only thing I can
think of is that Git doesn't track empty directories (I don't know if
that is an issue for you). One trick is to use a dot file in the empty
directory - sigh.

When doing this in the past I wanted to preserve all of the history in
mtn when transferring to git, as sometimes one goes down interesting
paths that do lead to useful code, just not useful in the current
context. Something you may want to consider.

Tony.
On 23/10/2018 14:40, Hendrik Boom wrote:

> Planning to use monotone together with git.  Monotone for day-to-day
> activity, because it's a system I understand and trust.  Git for posting
> working versions on github or gitlab or some such.
>
> The obvious way to do this is to have one workspace that is used with
> both git and monotone.  git will be tld to ignore _MTN; monotone will be
> told to ignore .git .
>
> And. of course, similar treatment with other control files, such as the
> one that tells monotone to ignore .git.
>
> Does this seem like a reasonable approach?
> Is there something I've overlooked?
> Is there a better approach?
> Is there some new feature I should be looking at instead?
>
> -- hendrik
>
> _______________________________________________
> Monotone-devel mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/monotone-devel



_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Reply | Threaded
Open this post in threaded view
|

Re: interoperating with git

Stephen Leake-3
In reply to this post by Hendrik Boom-2
Hendrik Boom <[hidden email]> writes:

> Planning to use monotone together with git.  Monotone for day-to-day
> activity, because it's a system I understand and trust.  Git for posting
> working versions on github or gitlab or some such.
>
> The obvious way to do this is to have one workspace that is used with
> both git and monotone.  git will be tld to ignore _MTN; monotone will be
> told to ignore .git .

I've done this with monotone and bazaar. It works, but is somewhat
tedious, since you end up doing every commit twice (possibly grouped
into larger commits for git, but still similar amount of work). I have
some support for this in the Emacs DVC frontend - avalable from the
ada-france monotone repository (see
http://www.nongnu.org/ada-mode/ada-france-access.html for contact info).

A better option with monotone and git is to export the monotone db to a
git repository. I have not done this yet, but others have reported
success. Search this mailing list archive.

--
-- Stephe

_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Reply | Threaded
Open this post in threaded view
|

Re: interoperating with git

Hendrik Boom-2
On Wed, Oct 24, 2018 at 10:00:31AM -0700, Stephen Leake wrote:

> Hendrik Boom <[hidden email]> writes:
>
> > Planning to use monotone together with git.  Monotone for day-to-day
> > activity, because it's a system I understand and trust.  Git for posting
> > working versions on github or gitlab or some such.
> >
> > The obvious way to do this is to have one workspace that is used with
> > both git and monotone.  git will be tld to ignore _MTN; monotone will be
> > told to ignore .git .
>
> I've done this with monotone and bazaar. It works, but is somewhat
> tedious, since you end up doing every commit twice (possibly grouped
> into larger commits for git, but still similar amount of work). I have
> some support for this in the Emacs DVC frontend - avalable from the
> ada-france monotone repository (see
> http://www.nongnu.org/ada-mode/ada-france-access.html for contact info).
>
> A better option with monotone and git is to export the monotone db to a
> git repository. I have not done this yet, but others have reported
> success. Search this mailing list archive.

That seems like a one-time activity, perhaps not what I want for an
ongoing development.  Or is there something I need to know about that I
don't?

>
> --
> -- Stephe

_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Reply | Threaded
Open this post in threaded view
|

Re: interoperating with git

Stephen Leake-3
Hendrik Boom <[hidden email]> writes:

> On Wed, Oct 24, 2018 at 10:00:31AM -0700, Stephen Leake wrote:
>> Hendrik Boom <[hidden email]> writes:
>>
>> > Planning to use monotone together with git.  Monotone for day-to-day
>> > activity, because it's a system I understand and trust.  Git for posting
>> > working versions on github or gitlab or some such.
>> >
>> > The obvious way to do this is to have one workspace that is used with
>> > both git and monotone.  git will be tld to ignore _MTN; monotone will be
>> > told to ignore .git .
>>
>> I've done this with monotone and bazaar. It works, but is somewhat
>> tedious, since you end up doing every commit twice (possibly grouped
>> into larger commits for git, but still similar amount of work). I have
>> some support for this in the Emacs DVC frontend - avalable from the
>> ada-france monotone repository (see
>> http://www.nongnu.org/ada-mode/ada-france-access.html for contact info).
>>
>> A better option with monotone and git is to export the monotone db to a
>> git repository. I have not done this yet, but others have reported
>> success. Search this mailing list archive.
>
> That seems like a one-time activity, perhaps not what I want for an
> ongoing development.  Or is there something I need to know about that I
> don't?

It's ongoing; you can update the git repository with new commits from
the monotone db.



--
-- Stephe

_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Reply | Threaded
Open this post in threaded view
|

Re: interoperating with git

Lapo Luchini
Stephen Leake wrote:

>>> A better option with monotone and git is to export the monotone db to a
>>> git repository. I have not done this yet, but others have reported
>>> success. Search this mailing list archive.
>>
>> That seems like a one-time activity, perhaps not what I want for an
>> ongoing development.  Or is there something I need to know about that I
>> don't?
>
> It's ongoing; you can update the git repository with new commits from
> the monotone db.

Yep, I'm doing this for my "public" opensource projects, like asn1js:

Take a look here:
https://github.com/lapo-luchini/asn1js/blob/master/mirror_to_github.sh

--
Lapo Luchini - http://lapo.it/


_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Reply | Threaded
Open this post in threaded view
|

Re: interoperating with git

Derek Scherger
It's nice to hear that the exporter is working for people.

Cheers,
Derek


On Fri, Nov 23, 2018 at 8:30 AM Lapo Luchini <[hidden email]> wrote:
Stephen Leake wrote:
>>> A better option with monotone and git is to export the monotone db to a
>>> git repository. I have not done this yet, but others have reported
>>> success. Search this mailing list archive.
>>
>> That seems like a one-time activity, perhaps not what I want for an
>> ongoing development.  Or is there something I need to know about that I
>> don't?
>
> It's ongoing; you can update the git repository with new commits from
> the monotone db.

Yep, I'm doing this for my "public" opensource projects, like asn1js:

Take a look here:
https://github.com/lapo-luchini/asn1js/blob/master/mirror_to_github.sh

--
Lapo Luchini - http://lapo.it/


_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel

_______________________________________________
Monotone-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monotone-devel