Pulling out directory
Becker, Mischa J
mischa.becker at fredmeyer.com
Tue Jan 22 02:30:29 UTC 2013
> -----Original Message-----
> From: mercurial-bounces at selenic.com [mailto:mercurial-
> bounces at selenic.com] On Behalf Of Adrian Klaver
> Sent: Monday, January 21, 2013 6:17 PM
> To: mercurial
> Subject: Re: Pulling out directory
>
> On 01/20/2013 05:37 PM, Adrian Klaver wrote:
> > Wonder if it is possible to pull a directory out of one repo and put
> > it into another along with its history?
> >
> > The situation is:
> >
> > 1) Converted a bzr directory to hg.
> > 2) Realized it was good time to split the project.
> > 3) Use hg convert the hg repo created into two smaller hg repos
> > leaving out some directories that I thought where not necessary.
> > 4) Then realized one of those left out directories really needed to be
> > moved into one of the new repos.
> > 5) Would like to do so and keep the history for the code in that
> directory.
> >
>
> So I guess not?
You can use hg convert to pull out that directory and forcibly put it into the repo it was left out of but doing so results in new changesets unrelated to the current ones. (Probably not what you are wanting.) It would be better to go back and redo the hg convert correctly to create a brand new repo.
Mischa Becker
________________________________
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
More information about the Mercurial
mailing list