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

  • Home
  • SEARCH
  • 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 6679759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:23:45+00:00 2026-05-26T04:23:45+00:00

Background: this is running on a Windows 2008 Server. https://www.mercurial-scm.org/wiki/Workflows#Feature_separation_through_named_branches I’m a Mercurial newbie,

  • 0

Background: this is running on a Windows 2008 Server.

https://www.mercurial-scm.org/wiki/Workflows#Feature_separation_through_named_branches

I’m a Mercurial newbie, and am trying to follow the advice above where it says to “Merge default into your feature as often as possible” — and I’ve done this a couple of times previously today, already, with other files.

However, this newest change just won’t merge.

When I do the ‘hg merge default’ I get the error “abort: Access is denied”. After googling around, I see that some people reported actually having permissions problems on the files in question. There’s nothing special about the permissions on the file in question, at least not that I can see. I’m a Linux person by training, not a Windows person, so fundamentally I don’t really understand Windows file permissions. Cygwin claims that the file in question is 644 (i.e., I can write to the file), which is the same set of permissions as every other file that has previously been successfully touched by the hg merge process in the past.

I took a look at the DOS ‘attrib’ command and it doesn’t show a ‘read-only’ flag next the file in question, either.

If this is less a Mercurial question than it is a Windows permissions question, I’m happy to modify the tags further as well.

I’m assuming that this “abort: Access is denied” error refers to the file in the changeset that needs to be merged, and not to one of the .hg/ files, but it’s a very cryptic error message — it doesn’t say which file has an access issue (and there is only one single file in the changeset that was changed — I purposely tried to be VERY simple with this test).

UPDATE:

Did an ‘hg rollback’ and tried the same test of commands in the same order, leaving the files open, only with a completely different file (lib/blort.html instead of blah/foo.html).

The ‘hg merge’ worked just fine.

So there’s probably something particularly hinky about the permissions on the specific file I started with (foo.html), or the directory that is its parent.

Another Edit

Definitely something off about the parent directory, as I had the same problem w/ another file in the directory, but the problem does not manifest elsewhere in the directory structure, only in this one directory.

Just checked the permissions on lib/ versus blah/ and they both seem the same in Cygwin, but that’s only a vague approximation of the Windows ACLs. When examining those by right-clicking each directory and examining the ‘Properties’ Security tabs, they again seem the same for both directories, but I think the crux of the problem is that I really don’t quite grok ACLs.

Is there some DOS command-line tool, like ‘attrib’ only more powerful, that, like ‘ls’ in linux, would give me more information than the confusing jumble of checkmarks I get in the ‘Properties’?

Hopefully the final edit

How to diff Windows permissions

‘iCacls’ seems to be the correct tool for the job, and seems to have solved the problem, but I’d like to duplicate this before accepting/closing.

SUMMARY

  1. When in doubt, use --debug on your Mercurial commands. This is a little bit ‘duh’ now, but thanks to @lazy-badger for pointing it out.

  2. You can fix your Server 2008 permissions using a command like icacls path /grant domain\user:(OI)(CI)F (see e.g. http://www.petri.co.il/forums/showthread.php?t=23207), but be sure to do this from an escalated CMD window (‘Run As Adminstrator’). Again ‘duh’ to Windows people, not so obvious to a Linux person (instead I went googling around for some DOS equivalent to sudo).

  • 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-05-26T04:23:46+00:00Added an answer on May 26, 2026 at 4:23 am

    Just to note “Access denied” on merge can have two different roots: mentioned by @emil and wrong or nonexistent rights for user, under which credentials hg was started, to create temporary files in $TEMP folder

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

Sidebar

Related Questions

I have a Windows 2008 R2 Server running IIS 7.5. Currently, I use WCF
Background: - Running Window Server 2008 R2. - The servers has been patched with
We are running Crystal Reports on a Windows Server 2008 with .NET framework 3.5
I have a website that's running on a Windows server and I'd like to
Background This question is in two parts. I have a one-way WCF operation hosted
Background: This question relates to versions of Delphi below 2009 (ie without Unicode support
Background this post explains how one can consume extension methods in Powershell http://community.bartdesmet.net/blogs/bart/archive/2007/09/06/extension-methods-in-windows-powershell.aspx Compare
I have this background, the css code is: body { background: #FFF url('images/bg.png') no-repeat
Please refer to this background question. After constructing this COUNT, how would I then
For the background to this question, see How to I serialize a large graph

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.