Dear Gour,

> I've tried to build darcs-unstable with --enable-git, but it failed.

Darcs-git is broken, and has been so for a few months already.

I do intend to fix Git support in Darcs.  It's a rather big job,
though -- the way we convert Git branches into Darcs branches is
broken by design, and David has explained to me how to do it right at
last FOSDEM.

> Before venturing into attempt to use darcs (locally) with remote (git)
> repo (I also did not tried git at all), I'd like to know if git support
> in darcs-stable is working and/or whether it is recommended to use darcs
> in the above scenario?

No, and no.

Darcs-git is designed to work with local repositories only.  You're
expected to use the native Git tools to perform remote access, i.e.

  git clone git+ssh://.../foo
  cd foo
  ...
  darcs record
  git push

with, of course, the ability to use Darcs to push from a local Git
repo to a local or remote Darcs repo (i.e. reliable two-way sync).

> The other possibility would be using tailor, but I'm not sure whether it
> is better solution taking into consideration that tailor's support for
> two-way syncing is questionable, not speaking about the extra hassle
> involved to setup everything.

I agree.

> I am personally more than happy using darcs and would like to avoid
> learning another rcs, so having workable darcs-git combo is another way
> of 'marketing' for those who cannot (or are afraid) to jump straight to
> darcs.

Native git is far from being as friendly as Darcs, but it's quite
usable as long as you don't need to do any merging (let alone
cherry-picking).  Here's a quick starter, with equivalent Darcs
commands as comments:

  git clone git+ssh://.../foo              # darcs get
  cd foo
  hack, hack, hack
  git status -a -v                         # darcs what
  git record                               # darcs record
  git push                                 # darcs push
  git pull                                 # darcs pull

This should get you going -- until you find the need to merge, in
which case you'll need to understand a little about Git (actually,
a lot -- there are no less than 17 commands related to merging in
Git).  Additionally, there's apparently no equivalent of ``darcs
pull --dry-run'' (I haven't found an equivalent yet, I just tend to
pull often in Git), and ``darcs push --dry-run'' (I use gitk to find
out what I'm going to push).

Hope this helps, and sorry for not having the time to get Darcs-git
into a usable shape.

                                        Juliusz


Attachment: pgpNi5ezSvn8v.pgp
Description: PGP signature

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to