guestrepo doesn't work with mercurial 4.7
Mathieu Clabaut created an issue 2018-08-20
The error message is:
failed to import extension guestrepo from /home/clabaut/contrib/hg/guestrepo-pnathan/guestrepo: 'module' object has no attribute 'command'
---
Mathieu Clabaut reporter
Moreover some tests failed with:
+ AttributeError: 'module' object has no attribute 'Abort'
Mark as spam
Delete
2018-08-20
---
Karsten.Sperling Opdal
I'm unable to commit fix:
diff -r d6b555dd6c37 -r f7949f113954 guestrepo/__init__.py
--- a/guestrepo/__init__.py Wed Oct 26 13:32:26 2016 +0200
+++ b/guestrepo/__init__.py Tue Oct 30 09:07:44 2018 +0100
@@ -122,7 +122,11 @@
# See the readme for a description of each command
# format: {"command-name": (function, options-list, help-string)}
cmdtable = {}
-command = cmdutil.command(cmdtable)
+try:
+ from mercurial import registrar
+ command = registrar.command(cmdtable)
+except (ImportError, AttributeError):
+ command = cmdutil.command(cmdtable)
command("grpull",
localopt + threadopt
Mark as spam
Delete
2018-10-30
---
Mathieu Clabaut reporter
I'm sorry, but I didn't understand your problem. You tried to apply the pull request and it didn't work ?
Mark as spam
Delete
2018-10-3
---
Karsten.Sperling Opdal
I have fixed issue for using guestrepo on mercurial 4.7 but I'm unable to push the fix.
~/source/guestrepo$ hg push
pushing to ssh://hg@bitbucket.org/guestrepo/guestrepo
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
remote: You're not allowed to write to this repository.
remote: transaction abort!
remote: rollback completed
remote: pretxnchangegroup.bb_perm hook failed
abort: push failed on remote
Mark as spam
Delete
2018-10-30