http://bugs.grommit.com/show_bug.cgi?id=345

           Summary: hg backup fails to let me backup other peoples'
                    repositories
           Product: SCM Migration
           Version: unspecified
          Platform: All
        OS/Version: Solaris 11/Nevada
            Status: NEW
          Severity: major
          Priority: P2
         Component: cdm
        AssignedTo: scm-migration-dev at opensolaris.org
        ReportedBy: stevel at sun.com


This is failing for two reasons, the cdm backup() routine attempts to call the
diff routine.  If in a repository that isn't mine, this can file with a
permission denied error:

[stevel at donuthole:tools] 523$ hg diff
Not trusting file /net/athyra/export/kupfer/tonic/ws/wx2hg/.hg/hgrc from
untrusted user kupfer, group staff
abort: Permission denied:
/net/athyra/export/kupfer/tonic/ws/wx2hg/./proto/root_sparc/var/krb5/rcache/root

This exception error message should perhaps be printed in the subsequent
exception catch black (cdm.py:240).

This causes the exception block to be entered, which tries to cleanup and
unlink the dirstate, bundle, diff, etc. files.  It then tries to os.rmdir() the
backupdir for the generation.  This fails if writing to a home directory (like
all SWAN home directories) because of NFS suckage:
total 7
drwxr-xr-x   2 stevel   staff          3 Sep 10 19:21 .
drwxr-xr-x   6 stevel   staff          7 Sep 10 19:21 ..
-rw-r--r--   1 stevel   staff          0 Sep 10 19:21 .nfsB375

We should either force a flush/sync after the unlink or wait or something for
that nfs temp file to clear up before attempting the rmdir.


-- 
Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to