how to push selected changes only?
hamann.w at t-online.de
hamann.w at t-online.de
Sat Jan 18 19:38:45 UTC 2014
>> On 18/01/14 15:23, hamann.w at t-online.de wrote:
>> >
>> > Hi,
>> >
>> > I have come to a point in a project where I wanted to keep a stable / reference version,
>> > so I cloned the repo and started to experiment on new stuff. At that point I stumbled across
>> > a few problems that I would like to see fixed in the reference version too.
>> > These fixes can be expressed either as specific filenames or as specific revision
>> > numbers. Hg push will accept only a single reviosion number.
>> > Is there any way to send them back? If not, I would probably have to send
>> > the modified files as they are now (and have revisions compressed into one step)
>> >
>> > Regards
>> > Wolfgang Hamann
>> >
>> >
>>
>> If you are on a true clone of the repository you would need to *graft*
>> your changes on - to quote the help:
>>
>> ~$ hg --help graft
>> hg graft [OPTION]... [-r] REV...
>>
>> copy changes from other branches onto the current branch
>>
Hi Steve,
I have just upgraded my installation (which was too old to offer graft) and tried it, but
unfortunately no success.
The way I am trying is
cd orig-dir
hg graft -R ../clone-dir -r 13:14 -r 17:20
(I had to use the -R because it complained about unknown revisions in orig-dir)
Should I perhaps run the command from the clone-dir instead?
Regards
Wolfgang Hamann
More information about the Mercurial
mailing list