Closed Bug 1127480 Opened 9 years ago Closed 9 years ago

Pushlog should handle stripping

Categories

(Developer Services :: Mercurial: Pushlog, defect)

defect
Not set
normal

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.
Attached file MozReview Request: bz://1127480/gps (obsolete) —
/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)
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.
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.
I really wish MozReview granted r+ on the parent for single commit reviews...
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Attachment #8556637 - Flags: review?(ted)
Attachment #8556637 - Flags: review?(emorley)
Attachment #8556637 - Flags: review+
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.
Blocks: 1127676
Blocks: 1129675
Attachment #8556637 - Attachment is obsolete: true
Attachment #8619252 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: