Last modified: 2014-02-22 19:17:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54292, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52292 - Changing the commit description creates out-dated patch.
Changing the commit description creates out-dated patch.
Status: NEW
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
wmf-deployment
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 59892 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-30 20:03 UTC by Tyler Romeo
Modified: 2014-02-22 19:17 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tyler Romeo 2013-07-30 20:03:42 UTC
See https://gerrit.wikimedia.org/r/47089

I used git-review to upload patch set 6. Then, accidentally, without refreshing my windows to see the new patchset, I changed the commit message to add a bug number. Rather than producing some error message or the like, it changed the commit message of patch set 5 and made it patch set 7, effectively undoing the in between patch.
Comment 1 christian 2013-07-30 22:02:22 UTC
Mhmmm. As your browser window was still at patch set 5, it looks
like expected behaviour to me.

I would not want gerrit to second guess the one who edited
the commit message of patch set 5 or even forbid editing the
commit message in that case.
Comment 2 Tyler Romeo 2013-07-30 22:18:03 UTC
How is that expected? It'd be like committing a database transaction where the data has changed since it was last read, or a more appropriate example: having a edit conflict on Wikipedia be resolved just by overwriting the last revision. The correct behavior would be to display an error saying there was an edit conflict.
Comment 3 Marcin Cieślak 2013-07-31 15:14:02 UTC
No, not necessary.

Our last patchset is patch set 5 which is revision bbb123 based on parent aaa456

One developer submitted patch set 6 (revision ccc789) based on the parent revision aaa456 as well.

Then another developer edits something which means submitting independent patch set 7 based on the parent revision aaa456 as well. It can include stuff from patchset 5 but does not have to.

All patchsets are independent "children" of the parent. Sometimes parents differ
when you "rebase" your stuff.

One can squash (merge) few changes into one - I would checkout patch set 6 and then checkout patch set 7 by using "git cherry-pick -n" without using another commit. You can use "git-review -X change,patchnr" for that.
Comment 4 Bartosz Dziewoński 2014-02-07 14:39:31 UTC
*** Bug 59892 has been marked as a duplicate of this bug. ***
Comment 5 Sorawee Porncharoenwase 2014-02-22 19:17:00 UTC
I ran into the exactly same problem on gerrit: 111943. It's so annoying.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links