##// END OF EJS Templates
mq: teach qpop about symlinks
Bryan O'Sullivan -
r5157:f6c520fd default
parent child Browse files
Show More
@@ -0,0 +1,6 b''
1 a -> a not a symlink
2 a -> b
3 Now at: base.patch
4 applying symlink.patch
5 Now at: symlink.patch
6 a -> b
@@ -810,9 +810,9 b' class queue:'
810 del wlock
810 del wlock
811
811
812 def pop(self, repo, patch=None, force=False, update=True, all=False):
812 def pop(self, repo, patch=None, force=False, update=True, all=False):
813 def getfile(f, rev):
813 def getfile(f, rev, flags):
814 t = repo.file(f).read(rev)
814 t = repo.file(f).read(rev)
815 repo.wfile(f, "w").write(t)
815 repo.wwrite(f, t, flags)
816
816
817 wlock = repo.wlock()
817 wlock = repo.wlock()
818 try:
818 try:
@@ -870,10 +870,9 b' class queue:'
870 if d:
870 if d:
871 raise util.Abort("deletions found between repo revs")
871 raise util.Abort("deletions found between repo revs")
872 for f in m:
872 for f in m:
873 getfile(f, mmap[f])
873 getfile(f, mmap[f], mmap.flags(f))
874 for f in r:
874 for f in r:
875 getfile(f, mmap[f])
875 getfile(f, mmap[f], mmap.flags(f))
876 util.set_exec(repo.wjoin(f), mmap.execf(f))
877 for f in m + r:
876 for f in m + r:
878 repo.dirstate.normal(f)
877 repo.dirstate.normal(f)
879 for f in a:
878 for f in a:
General Comments 0
You need to be logged in to leave comments. Login now