exceptions.TypeError: commit() takes at least 2 non-keyword arguments (1 given) on bzr commit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Hg Plugin |
Fix Released
|
Low
|
Jelmer Vernooij | ||
Debian |
Invalid
|
Undecided
|
Unassigned |
Bug Description
A bzr exception ( the first so far) attempting to commit a single file (see the log below). A commit without passing the file name is still possible. Thinking due the filename containing an hyphen, I have also done the same with another file, but without problem.
mar 2010-12-21 09:40:36 +0100
0.320 bazaar version: 2.3b3
0.324 bzr arguments: [u'commit', u'freeradius/
0.516 looking for plugins in /root/.
0.521 looking for plugins in /usr/lib/
1.128 encoding stdout as sys.stdout encoding 'UTF-8'
1.147 bzr-hg: using Mercurial 1.6.4
1.950 Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
exclude=
File "/usr/lib/
result = unbound(self, *args, **kwargs)
TypeError: commit() takes at least 2 non-keyword arguments (1 given)
1.960 couldn't find apport bug-reporting library: No module named apport
2.011 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
2.012 return code 4
mar 2010-12-21 09:40:47 +0100
0.254 bazaar version: 2.3b3
0.254 bzr arguments: [u'commit', u'-mAdding user Marco Verde to freeradius.']
0.369 looking for plugins in /root/.
0.374 looking for plugins in /usr/lib/
0.764 encoding stdout as sys.stdout encoding 'UTF-8'
0.838 opening working tree '/etc'
0.948 preparing to commit
[ 8354] 2010-12-21 09:40:48.944 INFO: Committing to: /etc/
0.984 Selecting files for commit with filter None
[ 8354] 2010-12-21 09:40:49.328 INFO: modified freeradius/
[ 8354] 2010-12-21 09:40:49.890 INFO: Committed revision 35.
1.929 Committed revid <email address hidden> as revno 35.
2.494 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
2.494 return code 0
mar 2010-12-21 09:50:44 +0100
0.206 bazaar version: 2.3b3
0.207 bzr arguments: [u'status']
0.337 looking for plugins in /root/.
0.342 looking for plugins in /usr/lib/
0.925 encoding stdout as sys.stdout encoding 'UTF-8'
1.037 opening working tree '/etc'
1.057 check paths: None
2.311 encoding stdout as sys.stdout encoding 'UTF-8'
2.329 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
2.329 return code 0
mar 2010-12-21 09:51:14 +0100
0.181 bazaar version: 2.3b3
0.181 bzr arguments: [u'commit', u'syslog-
0.305 looking for plugins in /root/.
0.310 looking for plugins in /usr/lib/
0.692 encoding stdout as sys.stdout encoding 'UTF-8'
0.702 bzr-hg: using Mercurial 1.6.4
0.771 opening working tree '/etc'
0.844 preparing to commit
[ 9921] 2010-12-21 09:51:15.501 INFO: Committing to: /etc/
0.898 Selecting files for commit with filter [u'syslog-
[ 9921] 2010-12-21 09:51:15.662 INFO: modified syslog-
[ 9921] 2010-12-21 09:51:15.893 INFO: Committed revision 36.
1.290 Committed revid <email address hidden> as revno 36.
1.811 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
1.811 return code 0
Related branches
- Launchpad code reviewers from Canonical: Pending requested
-
Diff: 729 lines (+257/-65)17 files modifiedMakefile (+3/-11)
NEWS (+21/-1)
README (+12/-0)
__init__.py (+48/-7)
branch.py (+19/-10)
commands.py (+55/-0)
fetch.py (+6/-4)
idmap.py (+2/-2)
info.py (+2/-2)
mapping.py (+8/-4)
parsers.py (+8/-5)
repository.py (+6/-1)
setup.py (+1/-1)
tests/__init__.py (+9/-2)
tests/test_dir.py (+42/-0)
tests/test_mapping.py (+1/-1)
tests/test_parsers.py (+14/-14)
Changed in bzr-hg: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
assignee: | nobody → Jelmer Vernooij (jelmer) |
tags: | added: verified |
tags: | removed: verified |
Changed in bzr-hg: | |
milestone: | none → 0.2 |
Changed in bzr-hg: | |
status: | Fix Committed → Fix Released |
milestone: | 0.2 → 0.1.1 |
Changed in debian: | |
status: | New → Invalid |
The hyphen in the filename is almost certainly a red herring; it's never been a problem before.
It looks like a bug in the bzr-hg plugin to me; its implementation of Tree.commit has a slightly wrong signature. It has 'message' as a required positional argument, but it should be an optional keyword argument.