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

extend and improve "sage -merge" #9319

Closed
jhpalmieri opened this issue Jun 23, 2010 · 4 comments
Closed

extend and improve "sage -merge" #9319

jhpalmieri opened this issue Jun 23, 2010 · 4 comments

Comments

@jhpalmieri
Copy link
Member

Two issues and/or suggestions for "sage -merge":

  • if a ticket (like remove databases/kohel.py since it is not used and broken #9278) removes a file from the Sage library, then 'sage -merge' runs 'sage -tp 2 -long' with no argument, and this doesn't succeed. So we should catch this case and deal with it.

  • 'sage -merge' should detect whether each patch file has a properly formatted commit message, and either automatically prepend "#NUM" to it, or allow the release manager to edit it, before applying it.

CC: @nexttime

Component: build

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/9319

@dandrake
Copy link
Contributor

script that checks a patch's metadata; for demonstration purposes

@dandrake
Copy link
Contributor

comment:2

Attachment: check_patch_metadata.py.gz

attachment: check_patch_metadata.py is a script that, given a patch file and a ticket number, will check to see that the commit message contains the ticket number in the first line, and if it doesn't, it will prepend "ticket xxxx:" to the commit message and save the resulting patch in a a file with ".fixed" appended. It should be easy to integrate this into sage-apply-ticket.

It bails if it cannot find a commit message or username in the patch. It issues a warning if it can't find a date, node ID or parent but continues. As a guess, I think "sage -merge" should fail if there's no commit message or username, and in the other cases, issue the warning and ask the user if they want to continue.

@jdemeyer
Copy link

Reviewer: Jeroen Demeyer

@jdemeyer
Copy link

comment:3

sage -merge is gone (#14417).

@jdemeyer jdemeyer removed this from the sage-5.10 milestone May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants