Source and Target switched on MigrationHome dialog

Aug 20, 2008 at 9:39 PM

I've been trying to setup a sync between a remote TFS server and my local one.  My remote TFS server is over the internet, and have been mentioned before with the URI vs Machine name, I resorted to manually changed the TfsToTfsMigrationToolConfig.xml.  When the UI came up with a configuration that was backwards to my intent, I started to trace thru the code.

Am I looking at the code wrong, but are the items for the TFS Source and Target entries being switched? 

Migraion Session list view has:  Session, Type, Source, Destination:

        private void PopulateWitSessions(MigrationConfig.MigrationElement migration)
        {
            try
            {
                if (migration.WIT != null && migration.WIT.Sessions.Count > 0)
                {
                    foreach (MigrationConfig.WITSessionElement session in migration.WIT.Sessions)
                    {
                        ListViewItem item = new ListViewItem();

                        item.Text = session.id;
                        item.SubItems.Add("Work Item");
                        item.SubItems.Add(session.Tfs.server + "." + session.Tfs.Project);
                        item.SubItems.Add(session.Source.Tfs.server + "." + session.Source.Tfs.Project);

                        lvwSessions.Items.Add(item);
                    }
                }
            }
            catch(Exception ex)
            {
                throw new ArgumentException("Error found loading WIT Sessions.", ex);
            }
        }

Thanks