Ask a questionAsk a question
 

AnswerExtend check-in Functionality

  • Monday, October 26, 2009 3:01 PMmarc.crockett Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    After check-in I would like to merge(baseless) those same changes into other branches, and pop-up any conflicts.  For example, if i checkin changes into the November release branch, I would like a utility to automatically merge those changes into the December release branch.

    My intension is to get the changesetID, and use it to get the FullPath of all the files that changed for that changeset. Then using a config file to determine what other branches these changes need to be merged to.  Then create & execute commandline merge(baseless) for each item.

    I'm not sure what object/event to extend.

Answers

  • Wednesday, October 28, 2009 2:34 PMEd HintzMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Marc,

    A Visual Studio add-in can be written to do this.  Sign up for the CommitCheckin event on the VersionControlServer object.  This event passes in information about the check-in where the add-in can decide if it should pend a merge or not.  

    Ed 
    http://blogs.msdn.com/edhintz

All Replies