12.07.2015 Views

Sage Developer's Guide - Mirrors

Sage Developer's Guide - Mirrors

Sage Developer's Guide - Mirrors

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Sage</strong> Developer’s <strong>Guide</strong>, Release 6.1.1It is also possible that you make some changes to the code as part of your review. After you have done that, you canupload your changes back to trac:[user@localhost]$ sage -dev commit[user@localhost]$ sage -dev pushThis will update the ticket to now point to your branch, including your changes. Your branch is based on the originalauthor’s branch, so s/he can easily incorporate your changes into his/her own branch (see below).1.4 CollaborationIt is very easy to collaborate by just going through the above steps any number of times:# developer 1sage -dev commitsage -dev push# developer 2sage -dev pullsage -dev commitsage -dev push# developer 1sage -dev pullsage -dev commitsage -dev push(etc)The obvious problem is when you both work on the same ticket simultaneously:# developer 1sage -dev commitsage -dev push# developer 2sage -dev commitsage -dev pushChanges not compatible with remote branchu//ticket/12270; considerdownloading first. Are you sure you want to continue?Developer 2 should probably select No, and do as suggested:sage -dev pullThis will try to merge the changes developer 1 made into the ones that developer 2 made. The latter should checkwhether all seems okay, and if so, upload the changes:sage -dev push# works nowIt is possible that the changes cannot be automatically merged. In that case, developer 2 will have to do some manualfixup after downloading and before uploading:1.4. Collaboration 7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!