Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8011157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:56:51+00:00 2026-06-04T18:56:51+00:00

How do I clone a Mercurial repository so that the my working copy always

  • 0

How do I clone a Mercurial repository so that the my working copy always has CRLF line endings?

This is similar to this question
Problems configuring eol extension in Mercurial

But I’m missing something that it doesn’t seem to work on my computer.

I’m new to Mercurial having been using SVN (TortoiseSVN) for several years.
I installed TortoiseHG and I am working with Brian O’Sullivan’s Mercurial: The Definitive Guide book.

So one of the first things I did was clone his sample repository on my machine and found that the file had LF endings rather than the Windows CRLF version.

So I tried to find the option to handle this as I did in SVN.

I created a file in %USERPROFILE%\Mercurial.ini with the following.

[extensions]
eol =

I deleted the repository and checked it out again. No change.

Looking around some more I saw I might need a .hgeol file. So I created one in the %USERPROFILE% folder with

[patterns]
** = native

Deleted and recloned the repository, the file still had LF’s rather than CRLF.

I then tried again putting the .hgeol file in the parent directory of the repository and lastly putting the command inside the Mercurial.ini file. I also tried replacing native with CRLF.

I must be missing something since it seems that this should be all I need to get it to work. Maybe I’m missing a concept here of automatic conversion like SVN did.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:56:52+00:00Added an answer on June 4, 2026 at 6:56 pm

    The .hgeol file should be a file in the root of your repository, not in the parent of the root, nor in the user directory nor inside the Mercurial.ini file.

    To add it to an existing clone, probably you should remove the existing working copy first with hg update null (or hg clone --noupdate). Then once you added the .hgeol file, you can get your working copy back using hg update, at which point the EOL conversion will take effect.

    I do not think you can add it directly to clones to without first committing the file to your repository.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Newbie alert! OK, I have a working central Mercurial repository that I've been working
My Quick Question is this: Everything seems to be working, except that Trac tickets
I have a mercurial repository history that looks like this : A -> B
I'm having difficulty figuring out how to clone my Mercurial repository from my local
I work on a Mercurial repository that is checked out onto an Unix filesystem
That is, in Mercurial, if Peter cloned from me by hg clone c:\mycode e:\code
Using Git or Mercurial, if the working directory is 1GB, then the local repository
Summarised Question: Are github-hosted sub repositories within a mercurial/kiln repository possible, and if so
I'm trying to clone a unix-hosted Mercurial repository to a Windows computer. I'm hoping
I was given a clone of a Mercurial repository and I don't know what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.