Extract Code from a Mercurial file

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Apr 7 03:15:07 UTC 2017


> 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