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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:51:26+00:00 2026-05-10T16:51:26+00:00

I use Tortoise SVN usuallly, but I have been looking into Mercurial since it

  • 0

I use Tortoise SVN usuallly, but I have been looking into Mercurial since it is a distributed revision control system.

What I am looking for, in both systems, is a tool that let me pick only parts of a file and commit them. If I want to do this now, I have to copy to a temp version of the file and keep only the changes I want to commit in the current version, and then copy the temp version to the current version again after committing. It’s just such a hassle and the program should be able to do this for me.

I heard Git supports this, please let me know if this is correct.

  • 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. 2026-05-10T16:51:27+00:00Added an answer on May 10, 2026 at 4:51 pm

    Mercurial can do this with the record extension.

    It’ll prompt you for each file and each diff hunk. For example:

    % hg record diff --git a/prelim.tex b/prelim.tex 2 hunks, 4 lines changed examine changes to 'prelim.tex'? [Ynsfdaq?]   @@ -12,7 +12,7 @@  \setmonofont[Scale=0.88]{Consolas}  % missing from xunicode.sty  \DeclareUTFcomposite[\UTFencname]{x00ED}{\'}{\i} -\else +\else foo  \usepackage[pdftex]{graphicx}  \fi  record this change to 'prelim.tex'? [Ynsfdaq?]   @@ -1281,3 +1281,5 @@  %% Local variables:  %% mode: latex  %% End: + +foo \ No newline at end of file record this change to 'prelim.tex'? [Ynsfdaq?]  n Waiting for Emacs... 

    After the commit, the remaining diff will be left behind:

    % hg di diff --git a/prelim.tex b/prelim.tex --- a/prelim.tex +++ b/prelim.tex @@ -1281,3 +1281,5 @@  %% Local variables:  %% mode: latex  %% End: + +foo \ No newline at end of file 

    Alternatively, you may find it easier to use MQ (Mercurial Queues) to separate the individual changes in your repository into patches. There is a MQ variant of record (qrecord), too.

    Update: Also try the crecord extension, which provides a curses interface to hunk/line selection.

    crecord screenshot

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

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer >>> re.match('(get|post|put|head)\s+(\S+) ','GET some-site.com HTTP/1.0 ...',re.IGNORECASE).groups() ('GET', 'some-site.com') >>> May 11, 2026 at 10:13 am
  • added an answer I don't see any harm in using Windows command keys… May 11, 2026 at 10:13 am
  • added an answer I can't tell you exactly why this happens, but in… May 11, 2026 at 10:13 am

Related Questions

I use Tortoise SVN usuallly, but I have been looking into Mercurial since it
I am just starting to use Subversion with Tortoise SVN client for one of
How am I supposed to use merge with the latest version of Tortoise SVN?
I use TortoiseSVN to access file based local repo. In all my commits an
I have TortoiseSVN set up to use KDiff3 as the conflict resolution tool (I
On a project I'm working on, we use subversion, with tortoiseSVN as a client,
I use Firebug and the Mozilla JS console heavily, but every now and then
I use rsync to synchronize files to Windows clients in a server agnostic way.
I use emacs to edit my xml files (nxml-mode) and the files were generated
I use the VS2008 command prompt for builds, TFS access etc. and the cygwin

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.