Greetings,

I had to convert a subversion repo to hg recently, and I ran into a
problem with Tailor.  Tailor was following symlinks, which caused all
sorts of breakage.  In any case, I fixed the code in the mercurial
backend and am attaching the patch.

Hope that helps,
Walter Landry
[EMAIL PROTECTED]
New patches:

[Fix symlink bug in hg backend
[EMAIL PROTECTED] {
hunk ./vcpx/repository/hg.py 259
-        from os.path import isdir, join, normpath
+        from os.path import isdir, join, normpath, islink
hunk ./vcpx/repository/hg.py 262
-                if not isdir(join(self.repository.basedir, normpath(n)))]
+                if not isdir(join(self.repository.basedir, normpath(n))) or 
islink(join(self.repository.basedir, normpath(n)))]
hunk ./vcpx/target.py 359
-        from os.path import join
+        from os.path import join, islink
hunk ./vcpx/target.py 377
-        for dir, subdirs, files in walk(join(self.repository.basedir, subdir)):
-            for excd in IGNORED_METADIRS:
-                if excd in subdirs:
-                    subdirs.remove(excd)
+        if not islink(join(self.repository.basedir, subdir)):
+            for dir, subdirs, files in walk(join(self.repository.basedir, 
subdir)):
+                for excd in IGNORED_METADIRS:
+                    if excd in subdirs:
+                        subdirs.remove(excd)
hunk ./vcpx/target.py 383
-            for excf in exclude:
-                if excf in files:
-                    files.remove(excf)
+                for excf in exclude:
+                    if excf in files:
+                        files.remove(excf)
hunk ./vcpx/target.py 387
-            if subdirs or files:
-                self._addPathnames([join(dir, 
df)[len(self.repository.basedir)+1:]
-                                    for df in subdirs + files])
+                if subdirs or files:
+                    self._addPathnames([join(dir, 
df)[len(self.repository.basedir)+1:]
+                                        for df in subdirs + files])
}

Context:

[git target: don't exit with an error if the working directory is already 
created
Miklos Vajna <[EMAIL PROTECTED]>**20080101234424
 
 creating the working dir twice then claiming about it already exists is not
 something we want
] 
[Fix #43: take advantage of Trac .rst handling
[EMAIL PROTECTED] 
[Update Walter's email
[EMAIL PROTECTED] 
[Whitespace
[EMAIL PROTECTED] 
[Assign basedir earlier, git backend needs it at _load() time
[EMAIL PROTECTED] 
[Avoid using multilevel -d option on CVS checkout
[EMAIL PROTECTED]
 This fixes a problem I have with using tailor to move changesets from
 one cvs repo to another.
 
 It also sounds like ticket #101 on the trac pages.
] 
[Perform a clobbering clean merge instead of a simple update under hg 0.9.5
[EMAIL PROTECTED] 
[Use only the first five components from changelog.read()
[EMAIL PROTECTED] 
[Replacement for localrepository.update()
[EMAIL PROTECTED]
 In 0.9.5+ localrepository.update(self, node) disappeared. Quick and
 dirty as it is, this patch reimplant the method using hg.update().
] 
[TAG Version 0.9.30
[EMAIL PROTECTED] 
Patch bundle hash:
72c6bdb96e2ffa4b22787d14beeee184592ef220
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor

Reply via email to