[PATCH 0 of 6] light-weight copy queue

Gilles Moris gilles.moris at free.fr
Wed Feb 2 16:07:34 CST 2011


On Monday 31 January 2011 10:27:32 pm Gilles Moris wrote:
> On Monday 31 January 2011 11:21:38 am Sune Foldager wrote:
> > Repost of the light-weight copy queue. It's rebased (almost) to tip, and
> > cleaned up compared to the last post, ages ago. A few problems and points
> > remain:
>
> Thanks Sune. I'll give it a try tomorrow.

I tried to the queue and the few tests I made worked well.

First initialize with a non-lwcopy repo:
  $ hg init lwtest1
  $ cd lwtest1
  $ hg add big1
  $ hg ci -m init
  $ ls -s .hg/store/data
  11448 big1.d      4 big1.i
  $ hg mv big1 big2
  $ hg ci -m renamed
  $ ls -s .hg/store/data
  11448 big1.d      4 big1.i  11448 big2.d      4 big2.i

Then take my new lwcopy-aware hg weapon:
  $ cd ..
  $ hglw clone --pull lwtest1 lwtest2
  $ cd lwtest2
  $ ls -s .hg/store/data
  11448 big1.d      4 big1.i      4 big2.i
Hurray, big2 collasped ! Let's take it a little further...
  $ hglw mv big2 big3
  $ hg ci -m "rename of rename"
  $ ls -s .hg/store/data
  11448 big1.d      4 big1.i      4 big2.i      4 big3.i
Wow! Still impressive!
  $ cd ..
  $ hglw clone --pull lwtest2 lwtest3
  $ cd lwtest3
  $ ls -s .hg/store/data
  11448 big1.d      4 big1.i      4 big2.i      4 big3.i
Worked again.

Thanks.
Gilles.


More information about the Mercurial-devel mailing list