3 # Copyright 2006, 2007 Brendan Cully <brendan@kublai.com> |
3 # Copyright 2006, 2007 Brendan Cully <brendan@kublai.com> |
4 # |
4 # |
5 # This software may be used and distributed according to the terms |
5 # This software may be used and distributed according to the terms |
6 # of the GNU General Public License, incorporated herein by reference. |
6 # of the GNU General Public License, incorporated herein by reference. |
7 |
7 |
|
8 '''patch transplanting tool |
|
9 |
|
10 This extension allows you to transplant patches from another branch. |
|
11 |
|
12 Transplanted patches are recorded in .hg/transplant/transplants, as a map |
|
13 from a changeset hash to its hash in the source repository. |
|
14 ''' |
|
15 |
8 from mercurial.i18n import _ |
16 from mercurial.i18n import _ |
9 import os, tempfile |
17 import os, tempfile |
10 from mercurial import bundlerepo, changegroup, cmdutil, hg, merge |
18 from mercurial import bundlerepo, changegroup, cmdutil, hg, merge |
11 from mercurial import patch, revlog, util |
19 from mercurial import patch, revlog, util |
12 |
|
13 '''patch transplanting tool |
|
14 |
|
15 This extension allows you to transplant patches from another branch. |
|
16 |
|
17 Transplanted patches are recorded in .hg/transplant/transplants, as a map |
|
18 from a changeset hash to its hash in the source repository. |
|
19 ''' |
|
20 |
20 |
21 class transplantentry: |
21 class transplantentry: |
22 def __init__(self, lnode, rnode): |
22 def __init__(self, lnode, rnode): |
23 self.lnode = lnode |
23 self.lnode = lnode |
24 self.rnode = rnode |
24 self.rnode = rnode |