Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-os
Diff: neo.py
- Revision:
- 22:599f5dc9c20e
- Parent:
- 21:1a3f920b6f07
- Child:
- 24:b29dad301edd
diff -r 1a3f920b6f07 -r 599f5dc9c20e neo.py
--- a/neo.py Wed Mar 30 03:26:05 2016 -0500
+++ b/neo.py Wed Mar 30 03:42:40 2016 -0500
@@ -99,6 +99,7 @@
@classmethod
def fromurl(cls, url, name=None):
repo = cls.__new__(cls)
+ url = url.strip()
m = re.match('^(.*/([+a-zA-Z0-9_-]+)/?)(?:#(.*))?$', url)
repo.repo = m.group(1)
@@ -268,7 +269,7 @@
for url, lib in iterlibs():
repo = Repo.fromurl(url, lib)
repo.update()
- if lib == repo.url:
+ if url == repo.url:
continue
savelib(repo)