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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:37:24+00:00 2026-06-08T05:37:24+00:00

Sometimes I can’t seem to be able to track the merge conflicts. I need

  • 0

Sometimes I can’t seem to be able to track the merge conflicts.
I need a command that allows me to discard one of my uncommitted files and then update it with the remote copy.

I tried hg revert myfile followed by hg pull , hg commit
but it still won’t let me merge or commit.

It keeps telling me to fix unresolved conflict first.

  • 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-08T05:37:25+00:00Added an answer on June 8, 2026 at 5:37 am

    You might need to let Mercurial know that you have resolved the conflict, using hg resolve. From the man page:

    hg resolve [OPTION]... [FILE]...
    
    redo merges or set/view the merge status of files
    
      Merges with unresolved conflicts are often the result of non-interactive
      merging using the "internal:merge" configuration setting, or a command-
      line merge tool like "diff3". The resolve command is used to manage the
      files involved in a merge, after "hg merge" has been run, and before "hg
      commit" is run (i.e. the working directory must have two parents). See "hg
      help merge-tools" for information on configuring merge tools.
    
      The resolve command can be used in the following ways:
    
      - "hg resolve [--tool TOOL] FILE...": attempt to re-merge the specified
        files, discarding any previous merge attempts. Re-merging is not
        performed for files already marked as resolved. Use "--all/-a" to select
        all unresolved files. "--tool" can be used to specify the merge tool
        used for the given files. It overrides the HGMERGE environment variable
        and your configuration files.  Previous file contents are saved with a
        ".orig" suffix.
      - "hg resolve -m [FILE]": mark a file as having been resolved (e.g. after
      having manually fixed-up the files). The default is to mark all
      unresolved files.
      - "hg resolve -u [FILE]...": mark a file as unresolved. The default is to
        mark all resolved files.
      - "hg resolve -l": list files which had or still have conflicts. In the
        printed list, "U" = unresolved and "R" = resolved.
    
      Note that Mercurial will not let you commit files with unresolved merge
      conflicts. You must use "hg resolve -m ..." before you can commit after a
      conflicting merge.
    

    Here’s how you pick up the version of the file from the server.
    When you “hg pull”, all changes from the server come into your copy of the repository. You can get the contents of a file in any revision using:

    hg cat -r <rev> <file>
    

    Use that to overwrite the local file, and commit.

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

Sidebar

Related Questions

I've noticed that sometimes commands can be tab completed. e.g. the xm command in
One of the pitfalls in Oracle is the fact that sometimes you can select
I have some problem with MySQL Workbench in that I sometimes can't set foreign
I've got an ArrayList that can sometimes contain the values Time (GMT), None, and
Sometimes, I'll end up having to catch an exception that I know can never
the following member expression type can sometimes be NUllable, I m checking that ,
I have a Ruby string that can sometimes contain some non-printable characters. Before I
I'm already aware that \w in PCRE (particularly PHP's implementation) can sometimes match some
I have an array that can vary in its dimension, sometimes can be small,
Sometimes we can see that after clicking some share button, a list of sharable

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.