[PyQt] dip Snapshot Support for Python v2.6 and v2.7
Phil Thompson
phil at riverbankcomputing.com
Mon Sep 13 14:13:27 BST 2010
On Mon, 13 Sep 2010 08:59:42 -0400, Darren Dale <dsdale24 at gmail.com>
wrote:
> On Mon, Jul 26, 2010 at 9:34 AM, Darren Dale <dsdale24 at gmail.com> wrote:
>> On Mon, Jul 26, 2010 at 4:00 AM, Phil Thompson
>> <phil at riverbankcomputing.com> wrote:
>>> On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale <dsdale24 at gmail.com>
>>> wrote:
>>>> On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson
>>>> <phil at riverbankcomputing.com> wrote:
>>>>> The current dip snapshots now support Python v2.6 and v2.7 as well
as
>>>>> Python v3.
>>>>>
>>>>> The API should be identical for all versions of Python.
>>>>
>>>> I had some trouble enabling MQ (hg qpush -a returned "no patches in
>>>> series"), so I installed the snapshot for py26.
>>>
>>> Make sure you use "qclone" rather than "clone".
>>
>> Oh, sorry. You were right, I overlooked qclone.
>
> Could I ask for clarification on how py26/py27 users should track the
> development branch? What I have been doing is:
>
> hg qclone http://www.riverbankcomputing.com/hg/dip
> hg qpush -a
> # the next day, attempt to sync:
> hg qpop -a
> hg pull
> hg update
> hg qpush -a
> # at this point, I often get error messages, like:
> applying dip.model.syntax
> applying dip.model.super
> applying dip.model.comprehensions
> applying dip.model.sipapi
> applying dip.model.misc
> applying dip.model.tests
> applying dip.ui.syntax
> unable to find 'dip/ui/robot.py' for patching
> 4 out of 4 hunks FAILED -- saving rejects to file dip/ui/robot.py.rej
> patching file dip/ui/toolkits/qt/qlistwidget_editor.py
> Hunk #1 FAILED at 342
> 1 out of 1 hunks FAILED -- saving rejects to file
> dip/ui/toolkits/qt/qlistwidget_editor.py.rej
> patching file dip/ui/toolkits/qt/qtablewidget_editor.py
> Hunk #1 FAILED at 414
> 1 out of 1 hunks FAILED -- saving rejects to file
> dip/ui/toolkits/qt/qtablewidget_editor.py.rej
> patch failed, unable to continue (try -v)
> patch failed, rejects left in working dir
> errors during apply, please fix and refresh dip.ui.syntax
>
> I don't know how to recover from these errors, so I end up deleting my
> clone and making a new one.
Mercurial Queues work by keeping the patches in a separate repository
within the main repository. The 'q' commands operate on the patch
repository as well as the main one. For some reason there is no qpull
command that will pull both repositories. The step you are missing is...
hg -R .hg/patches pull
...somewhere between the qpop and the qpush.
Alternatively, the snapshots are always up to date. (I'm slowly moving
away from overnight snapshots). They are generated when I do a push to the
main repository.
Phil
More information about the PyQt
mailing list