want option to allow uncommit but disallow changing mainline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
bzr (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: bzr
Hey
I think we need a way to prevent bzr push from replacing the history when it think it can do so; this might not be the right thing to do for local branches, but it's certainly the default behavior we want in Launchpad.
Here's the story
16:43 < lool> poolie: So basically someone had a bzr branch of our trunk, did a
local commit, pushed to a topic branch in launchpad, asked for a
merge
16:43 < lool> I merged it, pushed to the trunk branch
16:44 < lool> this guy then did another merge, forgetting that he abused his
local trunk branch as a topic branch
16:44 < lool> he pushed
16:44 < lool> Launchpad accepted that silently
16:44 < lool> but sent out an email that one revision had been removed
16:44 < lool> I was told this bzr behavior makes sense when working locally
16:44 < lool> If you look at the history now though, it misses my merge
16:45 < poolie> it's not on the mainline or it's not there at all?
16:45 < lool> it has the same data in the same timeline in the log, but one
merge commit is missing around the change I merged
16:45 < lool> poolie: My merge was removed from mainline by a mere bzr push
16:45 < lool> the revision got superseded by his local commit
16:46 < poolie> lool, so from what mwh said we might want an option or a
16:46 <@lool> Yes
16:47 <@lool> poolie: Cause it might be handy to be able to uncommit just after
doing a bad commit, pushing to the wrong place or so
16:47 <@lool> but I dont want to allow silently replacing history
16:52 <@lool> poolie: Are you in agreement? am I expected to file a bug
so that I never need to worry about it again? :-)
16:53 < poolie> lool, i do agree this makes sense
16:53 < poolie> i wonder if this should almost be on by default in some cases
Cheers,
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: bzr 2.1.2-1
ProcVersionSign
Uname: Linux 2.6.35-6-generic x86_64
Architecture: amd64
Date: Tue Jul 13 16:54:06 2010
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=fr_FR.UTF-8
SHELL=/bin/zsh
SourcePackage: bzr
summary: |
- Allows history rewrites + want option to allow uncommit but disallow changing mainline |
Changed in bzr (Ubuntu): | |
status: | New → Confirmed |
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in bzr (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
tags: | added: uncommit |
tags: | added: check-for-breezy |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Loïc Minier wrote:
> Public bug reported:
>
> Binary package hint: bzr
>
> Hey
>
> I think we need a way to prevent bzr push from replacing the history
> when it think it can do so; this might not be the right thing to do for
> local branches, but it's certainly the default behavior we want in
> Launchpad.
>
> Here's the story
>
> 16:43 < lool> poolie: So basically someone had a bzr branch of our trunk, did a
> local commit, pushed to a topic branch in launchpad, asked for a
> merge
> 16:43 < lool> I merged it, pushed to the trunk branch
> 16:44 < lool> this guy then did another merge, forgetting that he abused his
> local trunk branch as a topic branch
> 16:44 < lool> he pushed
> 16:44 < lool> Launchpad accepted that silently
> 16:44 < lool> but sent out an email that one revision had been removed
> 16:44 < lool> I was told this bzr behavior makes sense when working locally
> 16:44 < lool> If you look at the history now though, it misses my merge
> completely
Isn't the original fix for this setting "append_ revisions_ only" on the
trunk? (Preventing this sort of behavior).
In the short term, doing:
bzr branch lp:.../trunk -r -2
bzr merge XXX
bzr commit -m "Merging X correctly"
bzr push --overwrite lp:.../trunk
There are other ways, but it seems reasonable.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
9fAQACgkQJdeBCY SNAAMiawCfcbsuF 0YbEFWDgA7wgtgh 7SR4 uXCZcWv0cCtJuYW cT
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
gaMAnRcNnGpm3Hj
=rzkq
-----END PGP SIGNATURE-----