Giter VIP home page Giter VIP logo

Comments (2)

reinout avatar reinout commented on July 22, 2024

I can see the need you describe. However, I wonder about some corner cases:

  • In some cases you want to make a release of some older revision. I guess a "git fetch" won't hurt then.
  • The behaviour should be similar for svn/bzr/hg and an "svn up" can hurt harder than a "git fetch".
  • Is "origin" reliably always called "origin"?

OTOH, zest.releaser wants to push the changes afterwards, so the branch effectively MUST be up to date.

I guess my worries are mostly no problems in practice. "svn up" is the one I'm worried most about. @mauritsvanrees?

from zest.releaser.

mauritsvanrees avatar mauritsvanrees commented on July 22, 2024

With svn this is unneeded: when running prerelease and trying to commit it, you see the error immediately.

This would only be needed for git and friends, because there you can easily commit your hard work locally and totally forget to check if someone else has done work upstream too.

git fetch just fetches any extra commits and does not update the working directory, so that sounds safe. BTW, we should probably do git fetch --all to get all remotes. Whether the remotes are called origin or something else does not matter.

For bzr it should probably be bzr missing --theirs-only.

For mercurial, hg pull only gets the changes, without updating the working directory, so that seems safe too.

The most tricky with all these things is probably that we need to parse the output (possibly translated) to see if we need to warn the user. But in case of doubt we can always simply ask, with a default answer of 'No'.

from zest.releaser.

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.