This is an archive of the discontinued Mercurial Phabricator instance.

narrow: update the narrowspecs to new ones after pulling when widening
ClosedPublic

Authored by pulkit on Aug 27 2018, 8:10 AM.

Details

Summary

The ellipsis case updates the new narrowspecs at bundle2 handling code, and
non-ellipsis widening didn't use to work and never set the new narrowpats.
Previous pacth added server side logic for widening without ellipsis. This patch
adds the missing repo.setnarrowpats() so that we set the new narrowpats after
widening in non-ellipsis cases also.

This makes widening with non-ellipsis case work but there are certain things
which we can improve.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Aug 27 2018, 8:10 AM
martinvonz accepted this revision.Aug 29 2018, 7:37 PM
martinvonz added a subscriber: martinvonz.
martinvonz added inline comments.
hgext/narrow/narrowcommands.py
310

This means we're now setting it twice in some cases, but that's probably okay. We can always improve it later.

This revision is now accepted and ready to land.Aug 29 2018, 7:37 PM
This revision was automatically updated to reflect the committed changes.
pulkit added inline comments.Aug 30 2018, 8:46 AM
hgext/narrow/narrowcommands.py
310

Let me see if can remove the other place where we set it.