Changeset - d8b6c876c609
[Not reviewed]
default
0 2 0
domruf - 10 years ago 2016-02-24 22:34:33
dominikruf@gmail.com
vcs: use date format that is supported by Mercurial on non-english machines
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/backends/hg/inmemory.py
Show inline comments
 
@@ -83,7 +83,7 @@ class MercurialInMemoryChangeset(BaseInM
 
                parents[i] = parent._ctx.node()
 

	
 
        if date and isinstance(date, datetime.datetime):
 
            date = date.ctime()
 
            date = date.strftime('%a, %d %b %Y %H:%M:%S')
 

	
 
        commit_ctx = memctx(repo=self.repository._repo,
 
            parents=parents,
kallithea/lib/vcs/backends/hg/repository.py
Show inline comments
 
@@ -172,7 +172,7 @@ class MercurialRepository(BaseRepository
 
                changeset.short_id)
 

	
 
        if date is None:
 
            date = datetime.datetime.now().ctime()
 
            date = datetime.datetime.now().strftime('%a, %d %b %Y %H:%M:%S')
 

	
 
        try:
 
            self._repo.tag(name, changeset._ctx.node(), message, local, user,
 
@@ -202,7 +202,7 @@ class MercurialRepository(BaseRepository
 
        if message is None:
 
            message = "Removed tag %s" % name
 
        if date is None:
 
            date = datetime.datetime.now().ctime()
 
            date = datetime.datetime.now().strftime('%a, %d %b %Y %H:%M:%S')
 
        local = False
 

	
 
        try:
0 comments (0 inline, 0 general)