Comments
Patch
@@ -475,10 +475,24 @@ Write the python script to disk
> f = open(filename, 'w')
> f.write(data + '\n')
> f.close()
> EOF
+Script to make a simple text version of the content
+---------------------------------------------------
+
+ $ cat << EOF >> dircontent.py
+ > # generate a simple text view of the directoty for easy comparison
+ > import os
+ > files = os.listdir('.')
+ > files.sort()
+ > for filename in files:
+ > if os.path.isdir(filename):
+ > continue
+ > content = open(filename).read()
+ > print '%-6s %s' % (content.strip(), filename)
+ > EOF
Generate appropriate repo state
-------------------------------
$ hg init revert-ref
@@ -491,24 +505,42 @@ Generate base changeset
adding modified_clean
$ hg status
A modified_clean
$ hg commit -m 'base'
+(create a simple text version of the content)
+
+ $ python ../dircontent.py > ../content-base.txt
+ $ cat ../content-base.txt
+ base modified_clean
+
Create parent changeset
$ python ../gen-revert-cases.py parent
$ hg addremove --similarity 0
$ hg status
M modified_clean
$ hg commit -m 'parent'
+(create a simple text version of the content)
+
+ $ python ../dircontent.py > ../content-parent.txt
+ $ cat ../content-parent.txt
+ parent modified_clean
+
Setup working directory
$ python ../gen-revert-cases.py wc | cat
$ hg addremove --similarity 0
$ hg status
$ hg status --rev 'desc("base")'
M modified_clean
+(create a simple text version of the content)
+
+ $ python ../dircontent.py > ../content-wc.txt
+ $ cat ../content-wc.txt
+ parent modified_clean
+
$ cd ..