selectively applying changesets

Eric M. Hopper hopper at omnifarious.org
Mon Sep 26 00:31:32 CDT 2005


On Sun, 2005-09-25 at 16:43 -0700, Matt Mackall wrote:
> - a way to remember which changesets we didn't want, and why, and
>   when, and by who

I think this wouldn't be the right approach.  I think it would be better
for an individual repository to mark changes non-exportable instead.

> - a way to deal with the inter-changeset dependencies

Yes.  This is an interesting problem.  In the case of marking a
changeset as non-exportable, the means any changeset that depends on it
also becomes non-exportable.

> - a way to record that information in a form that works naturally with
>   history, merge, annotate, etc.

Well, I don't think this is much of a problem for a repository that
marks some of its changesets as non-exportable.  For someone using that
repository, those changesets show up fine.  And for anybody who pulls
stuff, well, they never get those changesets anyway.  The interesting
question is if they push stuff based on changesets that are now marked
non-exportable in the destination repository.

> - a way to propagate this information to other users

Now, in my use-case, where I have a number of personal repositories that
I'm always pushing changes between, that's an interesting question.  I
guess for the idea of marking particular changesets as non-exportable
would have to go along with the idea of me doing all of my bundles or
whatever out of a particular repository where I keep all the information
about which changesets are not exportable.

> Which is I why the solution I've personally been using is[1]:
> 
>   hg export <unwanted changeset> | patch -p1 -R
>   hg ci -m <explanation>

I would really rather my little tests where I make 5 different slight
tweaks to the code to test which one works best not show up in the
global repository or ever be exported, even in the form of a change + a
revert.  But, putting those 5 different slight tweaks in my local
repositories in the first place was invaluable since I was then able to
coherently work in a variety of different locations at the time.

Have fun (if at all possible),
-- 
The best we can hope for concerning the people at large is that they
be properly armed.  -- Alexander Hamilton
-- Eric Hopper (hopper at omnifarious.org  http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: This is a digitally signed message part
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050925/1b5f2589/attachment-0001.pgp


More information about the Mercurial mailing list