Giter VIP home page Giter VIP logo

Comments (7)

dirk-thomas avatar dirk-thomas commented on August 22, 2024

I don't see any related changes between these two releases. Can you please share a reproducible example (e.g. the .repos file) to figure out why it has changed for you.

from vcstool.

 avatar commented on August 22, 2024

It doesn't seem to have problems on linux, but on windows with version 0.1.35 it will have the problem on this repos file.

repositories:
  stuff:
    type: svn
    url: https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

Hm , that looks weird. If the entry doesn't have a version key I would expect the version field in the ImportCommand to be None:

command = ImportCommand(
args, repo['url'],
str(repo['version']) if 'version' in repo else None,
recursive=args.recursive)
). And if the version is None the line of code the TypeError is happening shouldn't even be used due to the condition it is being wrapped in (see
if command.version:
url += '@%d' % command.version
).

Maybe you can add some debug statement before that line and report what type and value command.version is on your case.

You can also try the following patch (e3c95ab) and see if it helps.

from vcstool.

 avatar commented on August 22, 2024

It seems that my example was invalid. Here is a better one.

repositories:
  stuff:
    type: svn
    url: https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco
    version: HEAD

Sorry for that. The trick here is that the version is always parsed as a string, even if it is an integer, so the print statement trying to print is a number will always fail.

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

Thanks for clarifying. That example makes sense.

from vcstool.

 avatar commented on August 22, 2024

What are the chances of getting a release for these changes? It would just be nice to install them from pypi.

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

Absolutely. 🚢 0.1.36

from vcstool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.