Commits

TK Soh committed fd9ddbd

do not use strings as comments

Comments (0)

Files changed (1)

     if name:
         shelfpath = "shelves/" + name
     else:
-        " Check if a shelf from an older version exists "
+        # Check if a shelf from an older version exists
         if os.path.isfile(repo.join('shelve')):
             shelfpath = 'shelve'
         else:
 
     forced = opts['force'] or opts['append']
     
-    ' Shelf name and path '
+    # Shelf name and path
     shelfname = opts.get('name')
     shelfpath = getshelfpath(repo,shelfname)
     
 def unshelve(ui, repo, *pats, **opts):
     '''restore shelved changes'''
 
-    ' Shelf name and path '
+    # Shelf name and path
     shelfname = opts.get('name')
     shelfpath = getshelfpath(repo,shelfname)
 
-    ' List all the active shelves by name and return '
+    # List all the active shelves by name and return '
     if opts['list']:
-        " Check for shelve file at old location first "
+        # Check for shelve file at old location first
         if os.path.isfile(repo.join('shelve')):
             ui.status('default')
         
-        " Now go through all the files in the shelves folder and list them out "
+        # Now go through all the files in the shelves folder and list them out
         dirname = repo.join('shelves')
         if os.path.isdir(dirname):
             for filename in os.listdir(repo.join('shelves')):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.