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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:12:03+00:00 2026-05-28T13:12:03+00:00

So there was a new branch created where we made some breaking changes to

  • 0

So there was a new branch created where we made some breaking changes to the codebase.

Now we are going to merge, but before that I want to get a list of all the files that were changed in the branch.

How can I get a list of files? I tried:

hg status --change REV

But i’m not sure if that is what I want, since I want all files changed in this branch and not a specific revision in the branch.

BTW, how can I view the revision numbers?

  • 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-28T13:12:04+00:00Added an answer on May 28, 2026 at 1:12 pm

    Try with

    $ hg status --rev "branch('your-branch')"
    

    to get the changes between the first and the last changeset on the branch (hg status will implicitly use min(branch('your-branch')) and max(branch('your-branch')) when you give it a range of revisions like this).

    Since you’ll be merging, you should really look at

    $ hg status --rev default:your-branch
    

    to see what is changed between the default branch and your-branch. This shows you the modifications done, and filters out any modifications done on the branch due to merges with default.

    This is necessary in case your history looks like this:

    your-branch:      x --- o --- o --- o --- o --- o --- y
                     /           /           /
    default:  o --- a --- o --- b --- o --- c --- o --- o --- d
    

    where you’ve already merged default into your branch a couple of times. Merging default into your branch is normal since you want to regularly integrate the latest stuff from that branch to avoid the branches drifting too far away from each other.

    But if a new file was introduced on default and later merged up into B, then you don’t really want to see that in the hg status output. You will see it if you do

    $ hg status --rev a:y
    

    since the file was not present in a, but is present in y. If you do

    $ hg status --rev d:y
    

    then you wont see the file in the output, assuming that it’s present in both heads.


    You write in a comment that you’re working Kiln repository. They mean “clone” when they say “branch”, but the above can still be adapted for your case. All changesets will be on the default named branch, but that’s okay.

    Run the following command in your local clone of the “branch” repository:

    $ hg bookmark -r tip mybranch
    

    This marks the current tip as the head of mybranch. Then pull all the changesets from the main repository:

    $ hg pull https://you.kilnhg.com/Repo/public/Group/Main
    

    You then mark the new tip as the tip of the main repository:

    $ hg bookmark -r tip main
    

    You can now run

    $ hg status --rev main:mybranch
    

    to see the changes between main and my-branch. If you want to see what you did on the branch itself, the use

    $ hg status --rev "::mybranch - ::main"
    

    The ::mybranch part will select changesets that are ancestors of mybranch — this is all your new work, plus old history from before you branched. We remove the old history with - ::main. In older versions of Mercurial, you would use hg log -r -r mybranch:0 -P main.

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

Sidebar

Related Questions

Here's the scenario: I've created a new repository for a codebase and made a
I have a dev git branch. I made some code changes locally. I haven't
I created a new branch locally called experimental git checkout -b experimental I made
A new branch from master is created, we call it test . There are
In struts2 version 2.1.x there is a new UnknownHandler that kicks in when a
The back-end admin interface informs me that there is a new security patch for
I created an experimental branch from master, and made four commits on the experimental
For example, if I am branch A , and created new branch B with
Suppose I was on master branch and created a new branch: git checkout -b
Is there a new version of XML out? If so when was it released

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.