[Bug 6179] New: `hg fix -r .` should update to rewritten commit

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri Aug 2 03:17:36 UTC 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6179

            Bug ID: 6179
           Summary: `hg fix -r .` should update to rewritten commit
           Product: Mercurial
           Version: stable branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: zash at zash.se
                CC: mercurial-devel at mercurial-scm.org

If `hg fix` is used to rewrite the working directory parent then you end up
with the same old parent afterwards. With evolve enabled you probably want `hg
evolve` to check out the fixed changeset, but without you get a warning about
"unknown working parent".

``` .hgrc
[fix]
trailing-whitespace:command=sed
trailing-whitespace:linerange=-e '{first},{last}s/\s\+$//'
trailing-whitespace:pattern=set:not binary()
```

$ hg init
$ echo "foo " > bar
$ hg add bar
$ hg ci -m init
$ hg fix -r .
$ hg stat
warning: ignoring unknown working parent b99a6b4226ff!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list