简体   繁体   中英

HG: Importing changes from the diff of two repo

How could we manage to import into a hg repo the differences of two repos.

I mean, say we have repo A, A2 and B. I would like to import to repo B(same file structure than A) the differences between A2 and A (A2 is just A with some changes).

I guess we should generate a diff between both directories and use hg import , but how should the diff be generated?
is there a better way to do this?

If B is totally equal to A you can (in B) just pull from A2

If B also differ from A, you can:

  • pull A from A2 (get additional head in A2 as result)
  • save diff of heads in A2 into file
  • import result of previous operation into B

And, BTW, you can streamline your current exotic workflow

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM