gitifyhg icon indicating copy to clipboard operation
gitifyhg copied to clipboard

"Access denied" errors are not handled properly

Open fingolfin opened this issue 11 years ago • 1 comments

I just had an odd experienced where I did a "git push" via gitifyhg to a hg repository, and no errors were reported. Yet when I tried to pull the changes in a hg clone of the same repository, no changes arrived. I repeated this two more times (each time adding another commit), still nothing.

I finally went into .git/hg/*/clone and issued a "hg push" there, only to get this message"

pushing to ssh://[email protected]/repos
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 3 changesets with 7 changes to 7 files
remote: error: pretxnchangegroup.access hook failed: mercurialserver.access: access denied for changeset XYZ
remote: transaction abort!
remote: rollback completed
remote: abort: mercurialserver.access: access denied for changeset XYZ

So it seems we should handle access denied errors, and inform the user accordingly. Instead of making it look as if everything succeeded.

fingolfin avatar Mar 25 '13 17:03 fingolfin

I think taking care of this TODO would accomplish that: https://github.com/buchuki/gitifyhg/blob/master/gitifyhg/gitexporter.py#L102

alexsydell avatar Mar 26 '13 21:03 alexsydell