Code Monkey home page Code Monkey logo

Comments (4)

felipec avatar felipec commented on August 27, 2024

Do you have 'remote-hg.hg-git-compat' enabled? If so, named branches are not tracked, because that's what hg-git does. If you want named branch tracking you have to disable that.

from git.

dusty-phillips avatar dusty-phillips commented on August 27, 2024

Yes, disabling hg-git-compat allows me to fetch named branches. Guess I'll leave it off. :)

from git.

dusty-phillips avatar dusty-phillips commented on August 27, 2024

Hm, I closed it too soon, without testing. ;)

mkdir test
cd test
hg init
echo a > a
hg add a
hg commit -m "a"

hg branch feature
echo b > b
hg add b
hg commit -m "b"

cd ..
# USING SSH because of #8
git clone hg::ssh://localhost//home/dusty/testgitremote/test test-git
git branch -r
#  origin/HEAD -> origin/master
#  origin/branches/default
#  origin/branches/feature
#  origin/master
echo CC>b
git add b
git commit -m "CC"
git push
#To hg::ssh://localhost//home/dusty/testgitremote/test
# * [new branch]      branches/feature -> branches/feature
cd ../test
hg log
# The CC commit has been added, but it's on branch default, not feature

So it appears that while I can checkout and follow named branches, I am not able to push to them. #9 (unable to create remote named branches) is not a showstopper, but if I can't push to existing ones, I'm not going to be able to use git with my company's crappy HG workflow.

from git.

felipec avatar felipec commented on August 27, 2024

A very similar commit was pushed, please give it a try:
https://raw.github.com/felipec/git/fc/remote/hg-next/contrib/remote-helpers/git-remote-hg

from git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.