Skip to contentSkip to conversation

Fix mercurial fetcher in fetch2

PATCH Applied Julian Pidancet 2 participants 2 messages Sep 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix mercurial fetcher in fetch2

The _build_revision method in Hg class gets called with the wrong number of arguments. This tiny patch adds a 5th argument to the method declaration to prevent python from throwing an exception.

---
 lib/bb/fetch2/hg.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/fetch2/hg.py +1 -1
index 793831a..ad6e85d 100644
@@ -166,7 +166,7 @@ class Hg(FetchMethod):
         output = runfetchcmd(self._buildhgcommand(ud, d, "info"), d)
         return output.strip()
 
-    def _build_revision(self, url, ud, d):
+    def _build_revision(self, url, ud, d, name):
         return ud.revision
 
     def _revision_key(self, url, ud, d, name):
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 5 lines · Julian Pidancet

The _build_revision method in Hg class gets called with the wrong number of arguments. This tiny patch adds a 5th argument to the method declaration to prevent python from throwing an exception.

Merged to master, thanks.

Richard