Extract Code from a Mercurial file

Peter Lowndes peter.lowndes at safewire.net
Fri Apr 7 08:15:00 UTC 2017


Thank you Kevin. That worked perfectly.

-----Original Message-----
From: Kevin Bullock [mailto:kbullock+mercurial at ringworld.org] 
Sent: 07 April 2017 04:15
To: Peter Lowndes
Cc: mercurial at mercurial-scm.org
Subject: Re: Extract Code from a Mercurial file

> On Apr 6, 2017, at 03:40, Peter Lowndes <peter.lowndes at safewire.net> wrote:
> 
> Hi,
>  
> Newbie question. I have been given a Mercurial file (.hg ending) when what I actually want is some source code. How do I extract readable code from this file? I have installed Mercurial and a Mercurial plugin to Eclipse but can’t see how to do such a simple task.

It's probably a bundle file, which means you may be able to create an empty repo and "pull" from the bundle:

$ hg init temp
$ cd temp
temp$ hg pull /path/to/bundle.hg

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock





More information about the Mercurial mailing list