mercurial/patch.py
changeset 2862 f3c68e0ca37d
parent 2860 0f08f2c042ec
child 2864 71e78f2ca5ae
equal deleted inserted replaced
2861:1f813d4fbcc8 2862:f3c68e0ca37d
    92                             p.path)
    92                             p.path)
    93 
    93 
    94             (src, dst) = [os.path.join(os.getcwd(), n)
    94             (src, dst) = [os.path.join(os.getcwd(), n)
    95                           for n in (p.oldpath, p.path)]
    95                           for n in (p.oldpath, p.path)]
    96 
    96 
    97             print "copying %s to %s" % (src, dst)
       
    98             targetdir = os.path.dirname(dst)
    97             targetdir = os.path.dirname(dst)
    99             if not os.path.isdir(targetdir):
    98             if not os.path.isdir(targetdir):
   100                 os.makedirs(targetdir)
    99                 os.makedirs(targetdir)
   101             try:
   100             try:
   102                 shutil.copyfile(src, dst)
   101                 shutil.copyfile(src, dst)