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 3342106
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:47:59+00:00 2026-05-18T00:47:59+00:00

When remotely updating a Mercurial Repository, I am getting the following error from the

  • 0

When remotely updating a Mercurial Repository, I am getting the following error from the hg update command that is being run on the remote server after the push. I looked around online for some help for this however was unsuccessful in finding anything useful. At this point, I am hoping for some ideas and / or insight as to what would be causing this problem.

The error is just below. It occurred when pushing two changesets. One changeset included an unrelated index.html file change. The other changeset was a merge, which included the index.html change as well as the renaming of the two image files.

levinaris@server01:/home/web/repository$ hg push
pushing to ssh://10.10.1.12//home/web/repository
searching for changes`remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 2 changesets with 1 changes to 1 files
remote: abort: Operation not permitted: /home/web/repository/html/images/image.gif
remote: warning: changegroup hook exited with status 255

Additional details:

  • Both images are 10385 bytes in size. (yes, this error occurs on two images I have)

  • The two images had their names changed in changesets that were already pushed and hg updated due to case-folding collisions when attempting to pull the repositories down to Windows PCs.

  • The target server has the following hook in /etc/mercurial/hgrc:

    [hooks]
    changegroup = hg update
  • As a work-around, I did the following:

    1. Deleted image.gif.
    2. Deleted another image file that produced the error.
    3. Ran hg update – success!
    4. Ran hg revert html/image/image.gif
    5. Ran hg revert html/image/otherimage.gif

At this point, I am trying to better understand the cause of this problem, so that I can ensure a solid, easy-to-use implementation in my environment. I really appreciate your help!!


After using hg --debug update in the hook, I received this output:

levinaris@server01:/home/web/repository$ hg push
pushing to /home/web/staging/repository
searching for changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 1 changes to 1 files
resolving manifests
 overwrite False partial False
 ancestor 58a5edb95c9a local 58a5edb95c9a+ remote 3aafb97b148c
  searching for copies back to rev 6
 html/index.php: remote is newer -> g
 html/images/otherimage.gif.casefolding: update permissions -> e
 html/images/image.gif: update permissions -> e
abort: Operation not permitted: /home/web/staging/repository/html/images/image.gif
warning: changegroup hook exited with status 255

Additional Permission Information:

  • All 3 files in the 2 changesets have 775 permission with the webuser:dev user:group.

  • My Global hgrc file has the webuser trusted

    [trusted]
    users = webuser
  • 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-18T00:48:00+00:00Added an answer on May 18, 2026 at 12:48 am

    Is it possible that the permissions that file on the server were such that it couldn’t be overwitten by the person doing the push?

    If, for example, two different people have done that push (and thus update) the second person isn’t going to be able to overwrite the files created by the first person’s push triggered update.

    Maybe try changing the hook to this for a test (you don’t actually have those single quotes on your hook, right?):

    [hooks]
    changegroup = hg --debug update
    

    If it is a permissions issue the usual fix is to put everyone who will be pushing and updating into the same group (I call mine ‘hg’) and then using the sticky group bit on all the directories in the repo to make sure new files have that group.

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

Sidebar

Related Questions

I am working remotely on a Windows Server via Remote Desktop Connection and some
I am attempting to remotely run an application that utilizes CUDA. The application is
I need to use fabfile to remotely start some program in remote boxes from
Is it even remotely possible to record sound that is being played on the
Can I run mysql delete row remotely from other machine? Something alike mysqldump which
I'm trying to remotely debug an exe, but I keep getting an error message.
I'm trying to install some software remotely from our domain server to all the
I have been following a tutorial that remotely downloads an image to an imageview,
I have a client/server application that remotely connects to a server via Java's SSLSocket.
I'm trying to execute a command remotely via SSH from Python, and in this

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.