Announcing git-cinnabar 0.1.0 (Was: Announcing a new (prototype) git-remote-hg tool)

2015-02-11 Thread Mike Hommey
other similar tools is that it doesn't use a local mercurial clone under the hood (unlike all the existing other such tools), and is close to an order of magnitude faster to clone a repository like http://hg.mozilla.org/mozilla-central than the git-remote-hg tool that used to be shipped in contrib/

Re: Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Jeff King
work. Maybe we need a layer of indirection? > > :) > > If the helpers are roughly interchangeable (that is, if you can switch > between fetching using each one into the same on-disk git repository), > then picking one to symlink as git-remote-hg in your $PATH should be > enough. Tha

Re: Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Mike Hommey
a layer of indirection? > > :) > > If the helpers are roughly interchangeable (that is, if you can switch > between fetching using each one into the same on-disk git repository), > then picking one to symlink as git-remote-hg in your $PATH should be > enough. > > If the

Re: Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Mike Hommey
On Fri, Dec 05, 2014 at 05:59:30PM -0500, Jeff King wrote: > On Fri, Dec 05, 2014 at 02:13:19PM -0800, Jonathan Nieder wrote: > > > Mike Hommey wrote: > > > > > I'm currently evaluating what the final tool would look like. I'm *very* > > > tempted to implement it in C, based on core git code, bec

Re: Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Jonathan Nieder
each one into the same on-disk git repository), then picking one to symlink as git-remote-hg in your $PATH should be enough. If they don't have that level of interoperability, then there's an argument to be made that the URLs shouldn't be the same. Unfortunately url.*.insteadof ru

Re: Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Jeff King
On Fri, Dec 05, 2014 at 02:13:19PM -0800, Jonathan Nieder wrote: > Mike Hommey wrote: > > > I'm currently evaluating what the final tool would look like. I'm *very* > > tempted to implement it in C, based on core git code, because there are > > many things that this helper does that would be so m

Re: Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Philip Oakley
at it doesn't handle (like named branches, bookmarks, phases, obsolescence markers), but it currently transposes a complete mercurial dag to git and maintains metadata about the original mercurial data. Code on https://github.com/glandium/git-remote-hg It doesn't support push, but suppo

Re: Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Jonathan Nieder
Mike Hommey wrote: > I'm currently evaluating what the final tool would look like. I'm *very* > tempted to implement it in C, based on core git code, because there are > many things that this helper does that would be so much easier to do > with direct access to git's guts. And that wouldn't requi

Announcing a new (prototype) git-remote-hg tool

2014-12-05 Thread Mike Hommey
named branches, bookmarks, phases, obsolescence markers), but it currently transposes a complete mercurial dag to git and maintains metadata about the original mercurial data. Code on https://github.com/glandium/git-remote-hg It doesn't support push, but support for that should come in the coming wee

Re: Error using git-remote-hg

2014-05-13 Thread Felipe Contreras
William Giokas wrote: > On Tue, May 13, 2014 at 03:24:51PM -0500, Felipe Contreras wrote: > > William Giokas wrote: > > > On Tue, May 13, 2014 at 02:09:55PM -0500, Felipe Contreras wrote: > > > > As you say, it's perfectly OK. > > > > > > But wrong. Yes, it works, but it's not how it should be don

Re: Error using git-remote-hg

2014-05-13 Thread William Giokas
On Tue, May 13, 2014 at 03:24:51PM -0500, Felipe Contreras wrote: > William Giokas wrote: > > On Tue, May 13, 2014 at 02:09:55PM -0500, Felipe Contreras wrote: > > > As you say, it's perfectly OK. > > > > But wrong. Yes, it works, but it's not how it should be done when we > > have a code review s

Re: Error using git-remote-hg

2014-05-13 Thread Felipe Contreras
William Giokas wrote: > On Tue, May 13, 2014 at 02:09:55PM -0500, Felipe Contreras wrote: > > William Giokas wrote: > > > On Tue, May 13, 2014 at 10:30:26AM -0700, Junio C Hamano wrote: > > > > > > Why do we "import changegroup" unconditionally, even though it > > > > is only used in the n

Re: Error using git-remote-hg

2014-05-13 Thread William Giokas
it.git, git's maintained out-of-tree (thanks to Junio's > decisions). I still see it in git.git, and I will contribute this upstream for as long as it is in the tree. If you want to use the patch that I sent to this list, feel free. > So please post your suggestions and patches to git...@googlegroups.com, > and use the latest code at https://github.com/felipec/git-remote-hg. Thanks, -- William Giokas | KaiSforza | http://kaictl.net/ GnuPG Key: 0x73CD09CF Fingerprint: F73F 50EF BBE2 9846 8306 E6B8 6902 06D8 73CD 09CF pgp_mLEPyhosF.pgp Description: PGP signature

Re: Error using git-remote-hg

2014-05-13 Thread Felipe Contreras
t, git's maintained out-of-tree (thanks to Junio's decisions). So please post your suggestions and patches to git...@googlegroups.com, and use the latest code at https://github.com/felipec/git-remote-hg. Cheers. -- Felipe Contreras -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Error using git-remote-hg

2014-05-13 Thread William Giokas
On Tue, May 13, 2014 at 10:30:26AM -0700, Junio C Hamano wrote: > Torsten Bögershausen writes: > > > I did some testing with Git 2.0-rc3 + 58aee0864adeeb5363f. > > The remote-helper tests for hg-git worked OK > > with both hg version 2.9 and 3.0 under both Mac OS and Linux. > > > > Should we cons

Re: Error using git-remote-hg

2014-05-13 Thread Felipe Contreras
our stupid decision for which you still haven't provided a rationale, the git-remote-hg and git-remote-hg are no longer maintained in git.git. If you hadn't made such a move, you would have your answer, the fix would be properly explained, the regression fixed, and all your users would be

Re: Error using git-remote-hg

2014-05-13 Thread Junio C Hamano
hat commit is the best solution to the problem. [References] *1* http://thread.gmane.org/gmane.comp.version-control.git/248063/focus=248348 *2* commit 58aee0864adeeb5363f2a06728596f9c9315811f Author: Felipe Contreras Date: Sat May 3 21:16:54 2014 -0500 remote-hg: add support for hg v3.0

Re: Error using git-remote-hg

2014-05-13 Thread Torsten Bögershausen
d cherry-pick this commit: >> >> No need to rebuild Git. >> >> You can also use the latest version: >> https://github.com/felipec/git-remote-hg > > Thanks Felipe and Torsten, just using the HEAD version of git-remote-hg > solved the problem. > > Best re

Re: Error using git-remote-hg

2014-05-13 Thread Charles Brossollet
upgraded. >> In short: The remote helper of Git 1.9.3 is not compatible with hg 3.0 >> You can eiher downgrade hg, or rebuild Git and cherry-pick this commit: > > No need to rebuild Git. > > You can also use the latest version: > https://github.com/felipec/git-remote-h

Re: Error using git-remote-hg

2014-05-12 Thread Felipe Contreras
ible with hg 3.0 > You can eiher downgrade hg, or rebuild Git and cherry-pick this commit: No need to rebuild Git. You can also use the latest version: https://github.com/felipec/git-remote-hg -- Felipe Contreras-- To unsubscribe from this list: send the line "unsubscribe

Re: Error using git-remote-hg

2014-05-12 Thread Torsten Bögershausen
> I'm using git 1.9.3 on Mac OS X 10.9.2, with hg 3.0 installed with brew. > > It used to work before, on this same repository, since then git and hg were > both upgraded. In short: The remote helper of Git 1.9.3 is not compatible with hg 3.0 You can eiher downgrade hg, or rebuild Git and cherry-

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
Michael Haggerty wrote: > On 05/12/2014 02:29 PM, Felipe Contreras wrote: > > Michael Haggerty wrote: > > [...] > >> 2. Moving git-remote-hg into the core would require you to continue your > >>presence on the Git mailing list. > > > > That is

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
Let me spell it out for you. Michael states "I agree with Junio. There > are good technical arguments for and against moving git-remote-hg out of > contrib." Since there are arguments for both sides, the decision boils > down to a judgment call. Michael states that he condones

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
Paolo Ciarrocchi wrote: > On Mon, May 12, 2014 at 2:48 PM, Felipe Contreras > wrote: > > Paolo Ciarrocchi wrote: > > > On Mon, May 12, 2014 at 11:42 AM, Michael Haggerty > > > wrote: > > > > While I agree with you the this project is managed in a bit conservative > > > way > > > > Only a bit? I

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Stefan Beller
2014-05-12 15:45 GMT+02:00 Paolo Ciarrocchi : > > No, sorry but I'm NOT interested in lying to git community. > It's not lying. See the "Helped-By: <>" lines in git.git commits. Often the help was formulating a correct and easy-to-understand commit message. -- To unsubscribe from this list: send

Error using git-remote-hg

2014-05-12 Thread Charles Brossollet
n Password: searching for changes no changes found searching for changes Traceback (most recent call last): File "/usr/local/bin/git-remote-hg", line 1254, in sys.exit(main(sys.argv)) File "/usr/local/bin/git-remote-hg", line 1238, in main do_export(parser) File

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Paolo Ciarrocchi
On Mon, May 12, 2014 at 2:48 PM, Felipe Contreras wrote: > > Paolo Ciarrocchi wrote: > > On Mon, May 12, 2014 at 11:42 AM, Michael Haggerty > > wrote: > > > > While I agree with you the this project is managed in a bit conservative > > way > > Only a bit? I don't think I've been involed in a mor

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Michael Haggerty
On 05/12/2014 02:29 PM, Felipe Contreras wrote: > Michael Haggerty wrote: > [...] >> 2. Moving git-remote-hg into the core would require you to continue your >>presence on the Git mailing list. > > That is another red herring. Moving them back to the contrib/ ar

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread David Kastrup
f other people >> >>> regarding the move from contrib to the core[1]. This move is already >> >>> under way, but suddenly Junio changed his mind. >> >> >> >> I agree with Junio. There are good technical arguments for and against >> >&g

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
Paolo Ciarrocchi wrote: > On Mon, May 12, 2014 at 11:42 AM, Michael Haggerty > wrote: > > > Felipe, you seem to have so much potential. If you would put as > > much effort in conducting social interactions as you do in coding, > > the whole balance would change entirely, and any software project

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
from contrib to the core[1]. This move is already > >>> under way, but suddenly Junio changed his mind. > >> > >> I agree with Junio. There are good technical arguments for and against > >> moving git-remote-hg out of contrib. > > > > Saying you

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
Stefan Beller wrote: > 2014-05-12 10:12 GMT+02:00 Felipe Contreras : > > Felipe Contreras wrote: > >> Linus Torvalds wrote: > >> > Felipe, stop this stupid blaming of everybody but yourself. > >> > >> Show me evidence that this decision was my fault. Junio certainly hasn't > >> said so. You just ha

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Michael Haggerty
already >>> under way, but suddenly Junio changed his mind. >> >> I agree with Junio. There are good technical arguments for and against >> moving git-remote-hg out of contrib. > > Saying you agree with Junio is content-free. You have to say *why* you > agree. Actual

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread David Kastrup
Michael Haggerty writes: > This email is written in sorrow, not in anger. Felipe, you seem to > have so much potential. If you would put as much effort in conducting > social interactions as you do in coding, [...] I think that's where you are mistaken. We are not talking about a lack of effo

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
t; > I agree with Junio. There are good technical arguments for and against > moving git-remote-hg out of contrib. Saying you agree with Junio is content-free. You have to say *why* you agree. You mention there are good technical arguments against the graduation of the tools. Surely if you

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Dennis Kaarsemaker
ready > > under way, but suddenly Junio changed his mind. > > I agree with Junio. There are good technical arguments for and against > moving git-remote-hg out of contrib. Those arguments were discussed at > length and I think their weight is on the side of not moving it. But >

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Stefan Beller
2014-05-12 10:12 GMT+02:00 Felipe Contreras : > Felipe Contreras wrote: >> Linus Torvalds wrote: >> > Felipe, stop this stupid blaming of everybody but yourself. >> >> Show me evidence that this decision was my fault. Junio certainly hasn't >> said so. You just have no idea what we are talking abou

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Michael Haggerty
arguments for and against moving git-remote-hg out of contrib. Those arguments were discussed at length and I think their weight is on the side of not moving it. But there are two other (in my opinion, stronger) reasons for keeping git-remote-hg out of the core: 1. That subproject has not been m

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
Junio, can you answer these questions? 1) What is missing from git-remote-hg/bzr in order for them to be considered to be merged to the core? 2) If a different maintainer steps up, would you consider reconsider merging them to the core? 3) Is there any chance that in the future you wo

Re: Should git-remote-hg/bzr be part of the core?

2014-05-12 Thread Felipe Contreras
is decision was my fault. Junio certainly hasn't said so. You just have no idea what we are talking about. > You make absolutely everything be this horrible disaster, you redefine > words ("regression") to be whatever you need/want them to be to be git-remote-hg and git-re

Should git-remote-hg/bzr be part of the core?

2014-05-11 Thread Felipe Contreras
fully he will do that in this thread, but I'll jump ahead and assume it's this one by John Keeping[2]: I do not want to end up in a situation where an update to Git is blocked by a distribution because git-remote-hg is not updated to support newer versions of Mercurial sufficientl

[ANNOUNCE] git-remote-hg 0.2

2014-05-09 Thread Felipe Contreras
Hi, git-remote-hg is a bidirectional bridge between Git and Mercurial. It is production-ready, has been widely tested, and was previously part of git.git. Junio C Hamano has retracted from his previous statements where he wanted these tools to become part of the Git core and distributed by

[PATCH] remote-helpers: add documentation for git-remote-hg/bzr

2014-05-05 Thread Felipe Contreras
diff --git a/Documentation/git-remote-hg.txt b/Documentation/git-remote-hg.txt new file mode 100644 index 000..0cceb76 --- /dev/null +++ b/Documentation/git-remote-hg.txt @@ -0,0 +1,121 @@ +git-remote-hg(1) + + +NAME + +git-remote-hg - bidirectional bridge between Git a

[PATCH 6/8] git-remote-hg: use internal clone's hgrc

2014-04-29 Thread Felipe Contreras
From: Daniel Liew Use the hgrc configuration file in the internal mercurial repository in addition to the other system wide hgrc files. This is done by using the 'ui' object from the 'repository' object which will have loaded the repository hgrc file if it exists. Signed-off-by: Dan Liew Signed

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-20 Thread Delcypher
> I see now, I've taken the patch with repo.ui and applied on my repo: > > https://github.com/felipec/git/commit/ee17fe1cf80d5196be382ebbbcb1a24c05e61658 Thanks. It might be helpful to catch the exception raised if https authentication details are missing so that a more user friendly error messag

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-20 Thread Felipe Contreras
Delcypher wrote: > > Same as me. And which version of git-remote-hg are you using? > > I'm using the version that ships with git 1.9.2 > > I've taken a look and it seems I made a mistake, sorry. It seems that > > [ui] > quiet = True > > is being resp

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-20 Thread Delcypher
> Same as me. And which version of git-remote-hg are you using? I'm using the version that ships with git 1.9.2 I've taken a look and it seems I made a mistake, sorry. It seems that [ui] quiet = True is being respected when placed in ``.git/hg/origin/clone/.hg/hgrc`` with t

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-20 Thread Felipe Contreras
Delcypher wrote: > > What version of Mercurial are you using? > > $ hg --version > > Mercurial Distributed SCM (version 2.9.2) Same as me. And which version of git-remote-hg are you using? -- Felipe Contreras -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-20 Thread Delcypher
> What version of Mercurial are you using? $ hg --version Mercurial Distributed SCM (version 2.9.2) (see http://mercurial.selenic.com for more information) Copyright (C) 2005-2014 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-20 Thread Felipe Contreras
Delcypher wrote: > > What is the problem you are trying to solve? > The problem I was trying to solve is I wanted my authentication > details to be in a hgrc local to the repository. > > The problem is git-remote-hg will parse > ``.git/hg/origin/clone/.hg/hgrc`` but will igno

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-15 Thread Delcypher
> What is the problem you are trying to solve? The problem I was trying to solve is I wanted my authentication details to be in a hgrc local to the repository. The problem is git-remote-hg will parse ``.git/hg/origin/clone/.hg/hgrc`` but will ignore any settings in it (this seems a little si

RE: git-remote-hg

2014-04-12 Thread Felipe Contreras
Christophe wrote: > I am using git-remote-hg to access to projects on bitbucket. I can clone the > master branch fine and push to it. I also see hg branches as > remotes/origin/branches/«branch». However, if I create a local branch > "branches/x" and want to push it to rem

RE: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-04-12 Thread Felipe Contreras
Daniel Liew wrote: > git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc > > Use the hgrc configuration file in the internal mercurial repository in > addition to the other system wide hgrc files. This is done by using the > 'ui' object from the 'repo

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-03-24 Thread Delcypher
ping. On 21 February 2014 15:17, Daniel Liew wrote: > git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc > > Use the hgrc configuration file in the internal mercurial repository in > addition to the other system wide hgrc files. This is done by using the > '

[PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

2014-02-21 Thread Daniel Liew
git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc Use the hgrc configuration file in the internal mercurial repository in addition to the other system wide hgrc files. This is done by using the 'ui' object from the 'repository' object which will have loaded the

git-remote-hg

2014-01-20 Thread Christophe
Hi, I am using git-remote-hg to access to projects on bitbucket. I can clone the master branch fine and push to it. I also see hg branches as remotes/origin/branches/«branch». However, if I create a local branch "branches/x" and want to push it to remotes/origin/branches/x, it gets

[PATCH] git-remote-hg: Fix . at end of ref

2013-06-21 Thread Brian Gernhardt
this problem. Signed-off-by: Brian Gernhardt --- contrib/remote-helpers/git-remote-hg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 0194c67..7fa6cd7 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b

Re: [PATCH] git-remote-hg: set stdout to binary mode on win32

2013-05-19 Thread Felipe Contreras
contrib/remote-helpers/git-remote-hg | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/contrib/remote-helpers/git-remote-hg > b/contrib/remote-helpers/git-remote-hg > index 328c2dc..95f4c1f 100755 > --- a/contrib/remote-helpers/git-remote-hg > +++

Re: [PATCH] git-remote-hg: set stdout to binary mode on win32

2013-05-19 Thread Junio C Hamano
> On Mon, Jan 28, 2013 at 4:13 PM, Amit Bakshi wrote: >> git clone hangs on windows (msysgit/cygwin), and >> file.write would return errno 22 inside of mercurial's >> windows.winstdout wrapper class. This patch sets >> stdout's mode to binary, fixing both issu

Re: [PATCH] git-remote-hg: set stdout to binary mode on win32

2013-05-18 Thread Felipe Contreras
out wrapper class. This patch sets > stdout's mode to binary, fixing both issues. > --- > contrib/remote-helpers/git-remote-hg | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/contrib/remote-helpers/git-remote-hg > b/contrib/remote-helpers/git-remo

Re: User experience: git-remote-hg

2013-05-18 Thread Ramkumar Ramachandra
[+CC: Felipe, the author and maintainer of the script] Samuel Chase wrote: > I just used git-remote-hg to convert a small hg repository. > > It worked perfectly. We'll be happy to address any deficiencies/ warts you find in everyday usage. Thanks. -- To unsubscribe from this list:

User experience: git-remote-hg

2013-05-17 Thread Samuel Chase
Greetings Git Developers, I just used git-remote-hg to convert a small hg repository. It worked perfectly. Thanks, and happy hacking, Samuel -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo inf

gitifyhg vs. git-remote-hg

2013-04-10 Thread Felipe Contreras
Hi, In a recent e-mail[1] it was suggested that gitifyhg and git-remote-hg had many differences, and that some users might be best served by using gitifyhg. While that e-mail was answered properly, I would like to point out what are the actual differences that affect users, not the ones that are