5255f7d1a07a — Tony Tung 8 years ago
fix some check-code violations

Summary:
1) Export and variable setting on separate lines.
2) 80-col.

Test Plan: python ../../hg-crew/tests/run-tests.py --with-hg ../../hg-crew/hg test-manifestdiskcache.t test-check-code.t

Reviewers: #sourcecontrol, rmcelroy

Reviewed By: rmcelroy

Subscribers: rmcelroy, ikostia, mitrandir

Differential Revision: https://phabricator.fb.com/D2903291

Signature: t1:2903291:1454630884:b51a536e05c59a84e3ac1d1bc91e5e1952edee6f
2 files changed, 6 insertions(+), 3 deletions(-)

M smartlog.py
M tests/test-manifestdiskcache.t
M smartlog.py +4 -2
@@ 461,8 461,10 @@ Excludes:
     try:
         enabled = True
         if masterrevset == 'tip':
-            # 'tip' is what _masterrevset always returns when it can't find master or @
-            ui.warn("warning: there is no master commit locally, try pulling from server\n")
+            # 'tip' is what _masterrevset always returns when it can't find
+            # master or @
+            ui.warn(("warning: there is no master commit locally, try pulling "
+                     "from server\n"))
 
         revdag = getdag(ui, repo, revs, masterrev)
         displayer = cmdutil.show_changeset(ui, repo, opts, buffered=True)

          
M tests/test-manifestdiskcache.t +2 -1
@@ 1,6 1,7 @@ 
 Setup
 
-  $ export PYTHONPATH=$TESTDIR/..:$PYTHONPATH
+  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
+  $ export PYTHONPATH
 
 Test functionality is present