[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial
Subject:    splitting apart a changeset
From:       Ernie Rael <errael () raelity ! com>
Date:       2020-04-11 15:07:07
Message-ID: 5632ab2b-6b6b-e287-e890-a799e76b57d6 () raelity ! com
[Download RAW message or body]

Given:

$ hg log -l8 -Trevsum
1543:fed597e360a9 draft Fix stuffReadbuff(":someCommand\n") issue, 
required IDE restart
1542:8d1ea8b127b1 draft annotate source with "// DONE" for end of line 
Segment issues
1541:cefdab9bbdad draft Better skipwhite(iter) implementation. 
Misc.skipwhite tests.

I want to split 1541 into two changesets: algorithmic change and tests. 
In this case I need to take one file (algorithm) out and into it's own 
changeset.  I've never tried hg split, but I'm wondering if that's the 
best/simplest way to go about it.

    hg split -r 1541 src/com/raelity/jvi/core/Misc.java

But reading the help, I'm not sure that's what I want. The statement

    The files that doesn't match will be gathered in the last changeset.

Alternately I'm thinking about

hg up 1541
hg amend --extract src/com/raelity/jvi/core/Misc.java
hg commit -m 'algo change'
hg evolve

Any comments/suggestions?

-ernie

_______________________________________________
Mercurial mailing list
Mercurial@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic