/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/doc_generate/autodoc_bash_completion.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import time
22
22
 
23
 
import bzrlib
24
 
import bzrlib.help
25
 
import bzrlib.commands
 
23
import breezy
 
24
import breezy.help
 
25
import breezy.commands
 
26
import breezy.osutils
26
27
 
27
28
 
28
29
def get_filename(options):
30
31
 
31
32
 
32
33
def infogen(options, outfile):
33
 
    t = time.time()
34
 
    tt = time.gmtime(t)
 
34
    tt = breezy.osutils.gmtime()
35
35
    params = \
36
36
           { "bzrcmd": options.bzr_name,
37
37
             "datestamp": time.strftime("%Y-%m-%d",tt),
38
38
             "timestamp": time.strftime("%Y-%m-%d %H:%M:%S +0000",tt),
39
 
             "version": bzrlib.__version__,
 
39
             "version": breezy.__version__,
40
40
             }
41
41
 
42
42
    outfile.write(preamble % params)