1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #1985 resolved

Workbench: closing a branch commits changed but unselected files

Ian Kemp
created an issue

Create a new branch in a repository containing files. Update your repo to this branch.

Modify an existing file on this branch.

Open Workbench. In the Commit view, ensure the file you modified is unchecked, i.e. should not be committed.

Click the Branch button in the commit view and select the "Close current branch" option.

Commit the changeset.

Expected result: Branch is closed without any file changes

Actual result: Branch is closed and the changed file becomes part of the commit

Reproducible: Always

Comments (4)

  1. Steve Borho

    commit: exclude all files on new/close branch if no file selected (fixes #1985)

    Commit widget allows branch operation with no file selected, but Mercurial interpret it as "commit all files". This patch avoids it by excluding all files, which is the same hack as mqNewRefreshCommand().

    9241b78a12d4

  2. Log in to comment