いくつかのコードプレックス プロジェクトのフォークを作成しました。追加のコードなどを実行し、カスタム コードをソース管理リポジトリにプルしました。
私が自分のフォークに取り組んでからの数週間と数か月で、メイントランクが更新されました。
コードをトランクのコードと同期するにはどうすればよいですか?
(コードをトランクと同期したい主な理由は、トランクがvs2010にアップグレードされ、まだvs2008プロジェクトバージョンを使用しているためです:( )。
いくつかのコードプレックス プロジェクトのフォークを作成しました。追加のコードなどを実行し、カスタム コードをソース管理リポジトリにプルしました。
私が自分のフォークに取り組んでからの数週間と数か月で、メイントランクが更新されました。
コードをトランクのコードと同期するにはどうすればよいですか?
(コードをトランクと同期したい主な理由は、トランクがvs2010にアップグレードされ、まだvs2008プロジェクトバージョンを使用しているためです:( )。
I just ran into the same issue and ended up here. While the comments above lead to the correct answer, they may not cut it for a person new to Mercurial who wants to contribute to an open source project.
A plain hg pull
would only pull any changes from your fork to your local cloned repository, not helpful in this case. There is an optional parameter [SOURCE]
that allows you to pull from the trunk instead.
Here are the Mercurial command-line commands needed to do the job (replace "someprojectname" accordingly for your desired CodePlex project or, for similar systems, replace the entire URL with your fork's trunk's URL [vs. your fork's URL]):
hg incoming https://hg01.codeplex.com/someprojectname
hg pull https://hg01.codeplex.com/someprojectname
hg merge
hg commit -m "Some message about merging changes from trunk."
hg push