[p4] Mapping of development setup files

Robert Cowham robert at vaccaperna.co.uk
Sat Sep 29 04:28:12 PDT 2007


Creating a hard link in Windows is actually not difficult if you are using
NTFS.

# create_hard_link.py
# Creates a hardlink using Windows special NTFS code

import sys
import win32file

def main():
    if len(sys.argv) <> 3:
        print "Usage: create_hard_link <new_link_name> <existing_file_name>"
        sys.exit(1)
    win32file.CreateHardLink(sys.argv[1], sys.argv[2])
    
if __name__ == "__main__":
    main() 


As to using the null root, p4win will at least give you an error message:

WARNING: 12:26:32 Unable to display local view for clients with a 'null'
root or a root without a drive letter.

P4v just displays nothing in Workspace view.

I think this is a bug and should be fixed, but that doesn't help you for
now.

Robert


More information about the perforce-user mailing list