Changes between Version 17 and Version 18 of MercurialBranches


Ignore:
Timestamp:
03/01/2011 12:58:27 PM (5 years ago)
Author:
lukeplant
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MercurialBranches

    v17 v18  
    7373hg transplant $HGREV || exit 1;
    7474# Modify the commit message
     75# We need to get added files, since after rollback this is forgotten
     76ADDED=$(hg log -r tip --template '{file_adds}')
     77REMOVED=$(hg log -r tip --template '{file_dels}')
    7578hg rollback > /dev/null || exit 1
     79if [ "x$ADDED" != "x" ]
     80then
     81    hg add $ADDED || exit 1
     82fi
     83if [ "x$REMOVED" != "x" ]
     84then
     85    hg remove $REMOVED || exit 1
     86fi
    7687hg commit -l hg-commit-message.txt || exit 1
    7788echo "Backport committed."
Back to Top