Comments (4)
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.
Yes, disabling hg-git-compat allows me to fetch named branches. Guess I'll leave it off. :)
from git.
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.
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)
- Something is wrong with git-stage docs HOT 2
- Crash during push to Hg repo HOT 2
- planet bzr repos cannot be cloned HOT 6
- push failed when git branch is different than bzr branch name HOT 2
- Trying to Parse email as int. HOT 1
- Push to new launchpad branch using git-remote-bzr HOT 4
- Fatal error thrown by felipec-git on fast-import of Hg assets HOT 13
- bzrlib.errors.NoSuchFile error while cloning openobject-addons on Launchpad HOT 1
- Cannot push when using https authentication with git-remote-hg HOT 5
- git-remote-hg mysteriously fails HOT 2
- Cloning hg repo from Octave project crashes fast-import HOT 5
- rebase or merge latest git release HOT 2
- Git commits show up in the "draft" phase in BitBucket HOT 2
- Closed branches can cause synchronization issues after gc
- Link to git-remote-hg.py in the wiki is wrong HOT 2
- Worked for a while, now fetch fails with "mark not declared"
- Sorry, flubbed an enter key press... please delete.
- git-remote-hg doesn't fetch HOT 2
- Bookmarks on named branches HOT 1
- uses obsolete python2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git.