Closed
Bug 1127480
Opened 9 years ago
Closed 9 years ago
Pushlog should handle stripping
Categories
(Developer Services :: Mercurial: Pushlog, defect)
Developer Services
Mercurial: Pushlog
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gps, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Currently, if we run `hg strip` on a repository with a pushlog, the world explodes. Let's fix that by teaching the pushlog extension about repository destruction events.
Reporter | ||
Comment 1•9 years ago
|
||
/r/3129 - pushlog: handle stripping (bug 1127480) Pull down this commit: hg pull review -r d1338ac70ec1d4d20ed8d86cf3b60654452cca37
Attachment #8556637 -
Flags: review?(ted)
Attachment #8556637 -
Flags: review?(emorley)
Comment 2•9 years ago
|
||
https://reviewboard.mozilla.org/r/3129/#review2509 ::: hgext/pushlog/__init__.py (Diff revision 1) > + 'ORDER BY pushid, rev ASC') As I said on IRC, iterating over every changeset in the repo seems terrible, but I don't have a better idea and I trust your judgement. Also having something that gives us a non-broken repo be slow seems better than having a broken repo.
Comment 3•9 years ago
|
||
https://reviewboard.mozilla.org/r/3129/#review2511 Ship It!
Reporter | ||
Comment 4•9 years ago
|
||
https://reviewboard.mozilla.org/r/3129/#review2513 > As I said on IRC, iterating over every changeset in the repo seems terrible, but I don't have a better idea and I trust your judgement. Also having something that gives us a non-broken repo be slow seems better than having a broken repo. And as I said in IRC, this only takes a second or two, even on a large repository.
Reporter | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/hgcustom/version-control-tools/rev/2a7a797f7f5a
Reporter | ||
Comment 6•9 years ago
|
||
I really wish MozReview granted r+ on the parent for single commit reviews...
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•9 years ago
|
Attachment #8556637 -
Flags: review?(ted)
Attachment #8556637 -
Flags: review?(emorley)
Attachment #8556637 -
Flags: review+
Reporter | ||
Comment 7•9 years ago
|
||
This is deployed in production. I even had to use it today. I stripped from version-control-tools a few days back and the repo wasn't mirroring due to a db constraint failure. Stripping the tip changeset to force a rebuild made everything happy again.
Reporter | ||
Comment 8•9 years ago
|
||
Attachment #8556637 -
Attachment is obsolete: true
Attachment #8619252 -
Flags: review+
Reporter | ||
Comment 9•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•