Sat Jun 24 17:41:15 CEST 2006  [EMAIL PROTECTED]
  * Correctly display "default encoding" warning

Sat Jun 24 17:52:09 CEST 2006  [EMAIL PROTECTED]
  * Add a hook to record updated entries in target repo

Sat Jun 24 18:47:42 CEST 2006  [EMAIL PROTECTED]
  * Fix _tryCommand call in _getRev
  
  I have not experienced the problem, but it seems clear _tryCommand is not
  correctly called here.

Sat Jun 24 19:57:43 CEST 2006  [EMAIL PROTECTED]
  * [git] do not rely on "git-commit -a", use git-update-index
  
  This is the first part of getting rid of git-commit.  We explicitely
  update the index for each type of file modification.
New patches:

[Correctly display "default encoding" warning
[EMAIL PROTECTED] {
hunk ./vcpx/shwrap.py 250
-                             "pass an already encoded input")
+                             "pass an already encoded input" % encoding)
}

[Add a hook to record updated entries in target repo
[EMAIL PROTECTED] {
hunk ./vcpx/target.py 292
-                    ChangesetEntry.RENAMED: self._renameEntries
+                    ChangesetEntry.RENAMED: self._renameEntries,
+                    ChangesetEntry.UPDATED: self._recordUpdatedEntries
hunk ./vcpx/target.py 406
+    def _recordUpdatedEntries(self, entries):
+        """
+        Records a sequence of entries as updated.
+        """
+
+        self._recordUpdatedPathnames([e.name for e in entries])
+
+    def _recordUpdatedPathnames(self, names):
+        """
+        Records a sequence of filesystem objects as updated.
+        """
+
+	pass
+
}

[Fix _tryCommand call in _getRev
[EMAIL PROTECTED]
 
 I have not experienced the problem, but it seems clear _tryCommand is not
 correctly called here.
] {
hunk ./vcpx/git.py 151
-        return self._tryCommand('rev-parse', '--verify', revision, GetUpstreamChangesetsFailure)[0]
+        return self._tryCommand(['rev-parse', '--verify', revision], GetUpstreamChangesetsFailure)[0]
}

[[git] do not rely on "git-commit -a", use git-update-index
[EMAIL PROTECTED]
 
 This is the first part of getting rid of git-commit.  We explicitely
 update the index for each type of file modification.
] {
hunk ./vcpx/git.py 178
-            cmd = self.repository.command("add")
-            ExternalCommand(cwd=self.basedir, command=cmd).execute(notdirs)
+            self._tryCommand(['update-index', '--add'] + notdirs)
+
+    def _recordUpdatedPathnames(self, names):
+        """
+        Records a sequence of filesystem objects as updated.
+        """
+
+	# can we assume we don't have directories in the list ?
+ 	self._tryCommand(['update-index'] + names)
hunk ./vcpx/git.py 235
-        # '-f' flag means we can get empty commits, which
-        # shouldn't be a problem.
-        cmd = self.repository.command("commit", "-a", "-F", "-")
+        cmd = self.repository.command("commit", "-F", "-")
hunk ./vcpx/git.py 267
-        git commit -a will automatically handle files deleted on the
-        filesystem, which should have already been done by the source
-        or rsync.
hunk ./vcpx/git.py 268
-        pass
+
+        from os.path import join, isdir
+
+        # Currently git does not handle directories at all, so filter
+        # them out.
+
+        notdirs = [n for n in names if not isdir(join(self.basedir, n))]
+        if notdirs:
+            self._tryCommand(['update-index', '--remove'] + notdirs)
}

Context:

[[hg] call add with no arguments on init
Brendan Cully <[EMAIL PROTECTED]>**20060621204559] 
[[hg] canonify repository root directory
Brendan Cully <[EMAIL PROTECTED]>**20060621191453
 
 The dirstate walker uses simple string comparison between repo.root
 and os.getcwd(), which may fail unexpectedly if repo.root is not
 the same as realpath(repo.root)
] 
[[hg] chdir to self.basedir before executing commands
Brendan Cully <[EMAIL PROTECTED]>**20060621184724
 
 Some hg tree walk operations expect to be started from the repository
 root (the command-line tool always does this). Without this patch
 the dirstate walk may occasionally inappropriately mangle paths,
 depending on where tailor is run from.
] 
[[hg] Remove files under subdirectories
Brendan Cully <[EMAIL PROTECTED]>**20060620210828
 
 removePathnames was just ignoring directories instead of
 removing the files under them. Tailor should walk mercurial's
 dirstate and remove all files under a removed directory.
] 
[[hg] Use high level commit command
Brendan Cully <[EMAIL PROTECTED]>**20060620203136
 
 commands.commit takes care of expanding directories to their component
 files so we don't have to (we weren't doing it correctly either). If
 mercurial ever decides to track directories, this will already be
 correct.
] 
[[hg] wrapper for commands.*
Brendan Cully <[EMAIL PROTECTED]>**20060620190739
 
 _hgCommand makes it easier to call commands.* functions, and
 ensures they will always have their options dictionary set
 correctly.
] 
[[hg] always use repository-specific UI when repository is available
Brendan Cully <[EMAIL PROTECTED]>**20060620190521] 
[Possible fix for #56: detect branch name at bootstrap
[EMAIL PROTECTED] 
[Use normalized path for comparing with paths from bzrlib
[EMAIL PROTECTED]
 This is the patch attached to ticket #59, thank you luks.
] 
[M-x whitespace-cleanup
[EMAIL PROTECTED] 
[Remove useless imports noticed by pyflakes
[EMAIL PROTECTED] 
[Catch ConfigParser exceptions
[EMAIL PROTECTED] 
[Use the new SF.NET nomenclature to reach the CVS repositories
[EMAIL PROTECTED] 
[Make changeset-threshold a cvs parameter
Yann Dirson <[EMAIL PROTECTED]>**20060606072820] 
[Compare the revision with branch only when following a branch
[EMAIL PROTECTED] 
[Revisited generation of commit entries
[EMAIL PROTECTED]
 Consider added names first, and add the old name in the abstract method.
 This should fix #39 where parent dirs are committed after child, either
 in very large svn commit or coming from CVS.
] 
[Add fake events at the end of the loop
[EMAIL PROTECTED] 
[TAG Version 0.9.23
[EMAIL PROTECTED] 
Patch bundle hash:
c7d85eca0ad9f75432ed4b4ee4dce8a3c2fd7629
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor

Reply via email to