summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/bzr.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-19 13:17:58 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-22 12:10:12 +0100
commitd228f9d938ecde959621d03fdd6c70ea467b5f39 (patch)
treeb01652d319bc4ec4999d62e657b68b221301e1fa /bitbake/lib/bb/fetch2/bzr.py
parent608821349c9a71e3e39d38bbc16669146c28d419 (diff)
downloadpoky-d228f9d938ecde959621d03fdd6c70ea467b5f39.tar.gz
bitbake: fetch2/git: Clean up sortable_revision
Now we no longer try and provide increasing values from the fetcher, we can simplify the function structure for the sortable_revision pieces and move the AUTOINC handling directly into the function which needs it, simplifying the code. (Bitbake rev: fb068bee47bb1a06f02447daf16c2b2a79c03288) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/bzr.py')
-rw-r--r--bitbake/lib/bb/fetch2/bzr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py
index 58e80c81f6..5d9e5f907c 100644
--- a/bitbake/lib/bb/fetch2/bzr.py
+++ b/bitbake/lib/bb/fetch2/bzr.py
@@ -132,12 +132,12 @@ class Bzr(FetchMethod):
132 132
133 return output.strip() 133 return output.strip()
134 134
135 def _sortable_revision(self, url, ud, d): 135 def sortable_revision(self, url, ud, d, name):
136 """ 136 """
137 Return a sortable revision number which in our case is the revision number 137 Return a sortable revision number which in our case is the revision number
138 """ 138 """
139 139
140 return self._build_revision(url, ud, d) 140 return False, self._build_revision(url, ud, d)
141 141
142 def _build_revision(self, url, ud, d): 142 def _build_revision(self, url, ud, d):
143 return ud.revision 143 return ud.revision