equal
deleted
inserted
replaced
105 Case #1: client with non-lfs content and the extension disabled; server with |
105 Case #1: client with non-lfs content and the extension disabled; server with |
106 non-lfs content, and the extension enabled. |
106 non-lfs content, and the extension enabled. |
107 |
107 |
108 $ cd client |
108 $ cd client |
109 $ echo 'non-lfs' > nonlfs.txt |
109 $ echo 'non-lfs' > nonlfs.txt |
110 >>> from __future__ import absolute_import |
|
111 >>> from hgclient import check, readchannel, runcommand |
110 >>> from hgclient import check, readchannel, runcommand |
112 >>> @check |
111 >>> @check |
113 ... def diff(server): |
112 ... def diff(server): |
114 ... readchannel(server) |
113 ... readchannel(server) |
115 ... # run an arbitrary command in the repo with the extension loaded |
114 ... # run an arbitrary command in the repo with the extension loaded |
238 |
237 |
239 $ hg clone -qr 0 http://localhost:$HGPORT $TESTTMP/cmdserve_client3 |
238 $ hg clone -qr 0 http://localhost:$HGPORT $TESTTMP/cmdserve_client3 |
240 |
239 |
241 $ cd ../cmdserve_client3 |
240 $ cd ../cmdserve_client3 |
242 |
241 |
243 >>> from __future__ import absolute_import |
|
244 >>> from hgclient import check, readchannel, runcommand |
242 >>> from hgclient import check, readchannel, runcommand |
245 >>> @check |
243 >>> @check |
246 ... def addrequirement(server): |
244 ... def addrequirement(server): |
247 ... readchannel(server) |
245 ... readchannel(server) |
248 ... # change the repo in a way that adds the lfs requirement |
246 ... # change the repo in a way that adds the lfs requirement |
353 c729025cc5e3 |
351 c729025cc5e3 |
354 |
352 |
355 $ mv $HGRCPATH $HGRCPATH.tmp |
353 $ mv $HGRCPATH $HGRCPATH.tmp |
356 $ cp $HGRCPATH.orig $HGRCPATH |
354 $ cp $HGRCPATH.orig $HGRCPATH |
357 |
355 |
358 >>> from __future__ import absolute_import |
|
359 >>> from hgclient import bprint, check, readchannel, runcommand, stdout |
356 >>> from hgclient import bprint, check, readchannel, runcommand, stdout |
360 >>> @check |
357 >>> @check |
361 ... def checkflags(server): |
358 ... def checkflags(server): |
362 ... readchannel(server) |
359 ... readchannel(server) |
363 ... bprint(b'') |
360 ... bprint(b'') |
402 $ cat >> $TESTTMP/nonlfs/.hg/hgrc <<EOF |
399 $ cat >> $TESTTMP/nonlfs/.hg/hgrc <<EOF |
403 > [extensions] |
400 > [extensions] |
404 > lfs = ! |
401 > lfs = ! |
405 > EOF |
402 > EOF |
406 |
403 |
407 >>> from __future__ import absolute_import, print_function |
|
408 >>> from hgclient import bprint, check, readchannel, runcommand, stdout |
404 >>> from hgclient import bprint, check, readchannel, runcommand, stdout |
409 >>> @check |
405 >>> @check |
410 ... def checkflags2(server): |
406 ... def checkflags2(server): |
411 ... readchannel(server) |
407 ... readchannel(server) |
412 ... bprint(b'') |
408 ... bprint(b'') |