Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neo should not "hg update" when a repository URL changes #11

Closed
Patater opened this issue Apr 4, 2016 · 3 comments
Closed

Neo should not "hg update" when a repository URL changes #11

Patater opened this issue Apr 4, 2016 · 3 comments

Comments

@Patater
Copy link
Contributor

Patater commented Apr 4, 2016

I got an error from neo.py update with latest meriac/mbed-os.

[neo.py] Pulling from remote repository
[neo.py] Exec hg pull
pulling from http://mbed.org/users/mbed_official/code/mbed-rtos
real URL is https://developer.mbed.org/users/mbed_official/code/mbed-rtos/
searching for changes
no changes found
[neo.py] Exec hg update -r 0d833691fc17
abort: unknown revision '0d833691fc17'!

mbed-os/core/mbed-rtos.lib has the contents: https://developer.mbed.org/teams/Morpheus/code/mbed-rtos-update/#0d833691fc17

However, the last time I ran neo.py update, the contents were http://mbed.org/users/mbed_official/code/mbed-rtos/#bdd541595fc5.

What neo.py appears to be doing is an hg update to the new revision "0d833691fc17", but with the old URL "http://mbed.org/users/mbed_official/code/mbed-rtos". This doesn't work. Neo should not do this.

Workaround: Delete the mbed-os folder in your application before running neo.py update. This is slow.

@screamerbg
Copy link
Contributor

@Patater

neo.py sync/publish - Syncs library references, meaning that the repository origin/remote URL is written in the .lib reference. This is a case where the repository URL is taken as a priority
nep.py update - Pulls from remote repo then updates to latest or specific revision. Library references (.lib files) are taken as a priority

If you changed the contents of the .lib file yourself then during sync it would be overwritten. Best way to handle this is to change the repository origin/remote URL.
Also during update, the file .lib may be overwritten depending on Mercurial's preference.

It would help a lot if you could provide a reproducible case. E.g. zip it and send it over Skype. Thanks in advance.

Cheers,
Mihail

@screamerbg
Copy link
Contributor

Can you please recheck whether this is still an issue?

@screamerbg
Copy link
Contributor

This should have been addressed already. Please try with latest revision and reopen if the issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants